    :root {
      --bg: #f7f8fa;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --accent: #0f766e;
      --danger: #b91c1c;
      --border: #e5e7eb;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 40%);
      color: var(--text);
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    }
    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px;
    }
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
      margin-bottom: 16px;
    }
    .card.csv-full-width {
      width: 100dvw;
      max-width: 100dvw;
      margin-left: calc(50% - 50dvw);
      margin-right: calc(50% - 50dvw);
    }
    @supports not (width: 100dvw) {
      .card.csv-full-width {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
      }
    }
    .card.csv-full-width .table-wrap {
      max-height: 420px;
    }
    h1 { margin: 0 0 8px; font-size: 24px; }
    p  { margin: 0 0 14px; color: var(--muted); }
    .title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .lang-switch {
      display: inline-flex;
      gap: 6px;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      padding: 4px;
    }
    .lang-switch .lang-btn {
      border: 0;
      background: transparent !important;
      color: #334155;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      box-shadow: none;
    }
    .lang-switch .lang-btn.active {
      background: #0f766e !important;
      color: #fff;
    }
    .mode-switch {
      display: inline-flex;
      gap: 8px;
      margin: 4px 0 6px;
      padding: 6px;
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
    }
    .mode-btn {
      border: 1px solid #d1d5db;
      background: #fff;
      color: #1f2937;
      border-radius: 9px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }
    .mode-btn.active {
      border-color: #0f766e;
      background: #0f766e;
      color: #fff;
    }
    .mode-help {
      margin-bottom: 12px;
    }
    form {
      display: grid;
      grid-template-columns: 1fr 120px 100px 100px;
      gap: 10px;
      align-items: end;
    }
    .mesh-form {
      grid-template-columns: minmax(260px, 1fr) 120px 120px;
    }
    .tech-form {
      grid-template-columns: minmax(260px, 1fr) 120px;
    }
    .geo-form {
      grid-template-columns: minmax(260px, 1fr) 120px;
    }
    label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
    input[type="url"], input[type="number"] {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      font-size: 14px;
    }
    .actions {
      display: flex;
      gap: 10px;
      margin-top: 10px;
      align-items: center;
    }
    button {
      border: 0;
      background: var(--accent);
      color: #fff;
      border-radius: 8px;
      padding: 10px 14px;
      font-weight: 600;
      cursor: pointer;
    }
    button:disabled { opacity: 0.55; cursor: not-allowed; }
    .button-link {
      display: inline-block;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 13px;
      line-height: 1;
      border: 0;
      cursor: pointer;
    }
    .button-link.secondary {
      background: #334155;
    }
    .danger { color: var(--danger); white-space: pre-wrap; }
    .status {
      padding: 10px;
      border-radius: 8px;
      background: #ecfeff;
      border: 1px solid #a5f3fc;
      margin-bottom: 10px;
      white-space: pre-wrap;
    }
    #status-box {
      font-size: 11px;
      line-height: 1.35;
    }
    .summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(120px, 1fr));
      gap: 8px;
      margin-bottom: 10px;
    }
    .kpi {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px;
      background: #fff;
    }
    .kpi b { display: block; font-size: 20px; }
    .kpi span { color: var(--muted); font-size: 12px; }
    pre {
      margin: 8px 0 0;
      max-height: 260px;
      overflow: auto;
      background: #111827;
      color: #f9fafb;
      border-radius: 8px;
      padding: 10px;
      font-size: 12px;
      line-height: 1.45;
    }
    .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    #result-card .row {
      margin-bottom: 12px;
    }
    .download-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .table-wrap {
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: auto;
      max-height: 520px;
      background: #fff;
      box-shadow: inset 0 1px 0 #f1f5f9;
    }
    table.csv-table {
      border-collapse: collapse;
      width: 100%;
      min-width: 1120px;
      font-size: 13px;
    }
    .csv-table th, .csv-table td {
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
      text-align: left;
      padding: 9px 10px;
      vertical-align: top;
      white-space: nowrap;
    }
    .csv-table tbody tr:nth-child(even) {
      background: #fafafa;
    }
    .csv-table tbody tr:hover {
      background: #f0f9ff;
    }
    .csv-table th {
      position: sticky;
      top: 0;
      background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
      z-index: 2;
      cursor: pointer;
      font-size: 12px;
      letter-spacing: 0.01em;
      color: #334155;
    }
    .csv-table th.sort-asc::after { content: " ▲"; font-size: 10px; color: var(--muted); }
    .csv-table th.sort-desc::after { content: " ▼"; font-size: 10px; color: var(--muted); }
    .csv-table th:first-child,
    .csv-table td:first-child {
      position: sticky;
      left: 0;
      background: #f8fafc;
    }
    .csv-table th:first-child { z-index: 4; }
    .csv-table td:first-child { z-index: 1; }
    .csv-table td:first-child {
      font-weight: 600;
      color: #0f172a;
    }
    .csv-table td {
      max-width: 380px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .csv-cell {
      display: inline-block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: top;
    }
    .csv-cell-wrap {
      white-space: normal;
      line-height: 1.35;
      display: block;
    }
    .csv-cell-url {
      color: #0f766e;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
    }
    .csv-cell-num {
      font-variant-numeric: tabular-nums;
      font-weight: 600;
    }
    .csv-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid #cbd5e1;
      padding: 2px 9px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      background: #f8fafc;
      color: #334155;
      white-space: nowrap;
    }
    .csv-badge-ok {
      background: #ecfdf5;
      border-color: #86efac;
      color: #166534;
    }
    .csv-badge-warn {
      background: #fffbeb;
      border-color: #fcd34d;
      color: #92400e;
    }
    .csv-badge-bad {
      background: #fef2f2;
      border-color: #fca5a5;
      color: #991b1b;
    }
    .csv-badge-crit { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
    .csv-badge-high { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
    .csv-badge-medium { background: #fefce8; border-color: #fde68a; color: #854d0e; }
    .csv-badge-low { background: #ecfdf5; border-color: #86efac; color: #166534; }
    .csv-badge-none { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
    .issues-list {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      white-space: normal;
    }
    .issues-item {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      font-size: 11px;
      max-width: 280px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .muted {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 8px;
    }
    .filter-grid {
      display: grid;
      grid-template-columns: 1fr 120px 140px 140px 190px;
      gap: 8px;
      margin-bottom: 10px;
    }
    .filter-actions {
      display: flex;
      align-items: end;
      justify-content: flex-end;
    }
    .filter-reset-btn {
      background: #334155;
      color: #fff;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 600;
      width: 100%;
      max-width: 190px;
      white-space: nowrap;
    }
    .filter-reset-btn:hover {
      background: #1e293b;
    }
    select {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      font-size: 14px;
    }
    .history-list {
      margin: 10px 0 0;
      padding-left: 16px;
      color: var(--muted);
      font-size: 13px;
    }
    .insights-list {
      list-style: none;
      margin: 12px 0 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
    }
    .insights-panel {
      white-space: normal;
      border: 1px solid #99f6e4;
      background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
      padding: 14px;
    }
    .insights-title {
      display: block;
      font-size: 28px;
      line-height: 1.1;
      margin-bottom: 2px;
      color: #0f172a;
      letter-spacing: -0.02em;
    }
    .insight-chip {
      background: #ffffff;
      border: 1px solid #d1fae5;
      border-radius: 10px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-height: 64px;
    }
    .insight-chip.insight-chip-clickable {
      cursor: pointer;
      transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    }
    .insight-chip.insight-chip-clickable:hover {
      background: #f8fafc;
      border-color: #93c5fd;
      box-shadow: 0 2px 0 rgba(96, 165, 250, 0.18);
    }
    .insight-chip.insight-chip-clickable:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }
    .insight-chip.insight-chip-clickable.is-active {
      border-color: #2563eb;
      background: #dbeafe;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
    }
    .insight-chip-label {
      font-size: 12px;
      color: var(--muted);
    }
    .insight-chip-value {
      font-size: 22px;
      font-weight: 700;
      line-height: 1;
      color: #0f172a;
    }
    .insight-chip-critical { border-left: 4px solid #dc2626; }
    .insight-chip-high { border-left: 4px solid #ea580c; }
    .insight-chip-medium { border-left: 4px solid #ca8a04; }
    .insight-chip-low { border-left: 4px solid #16a34a; }
    .insight-chip-none { border-left: 4px solid #64748b; }
    .insight-chip-conflicts { border-left: 4px solid #0f766e; }
    .insight-groups {
      margin-top: 12px;
      display: grid;
      gap: 10px;
    }
    .insight-group {
      border-top: 1px solid #bae6fd;
      padding-top: 8px;
    }
    .insight-group-title {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #0f766e;
      margin-bottom: 6px;
      font-weight: 700;
    }
    .issue-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .issue-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px solid #bfdbfe;
      background: #ffffff;
      font-size: 12px;
      color: #1f2937;
      max-width: 100%;
    }
    .issue-tag span {
      max-width: 300px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .issue-tag b {
      font-size: 11px;
      color: #0f766e;
      background: #ecfeff;
      border: 1px solid #a5f3fc;
      border-radius: 999px;
      padding: 1px 6px;
    }
    .domain-overview-box {
      margin-top: 12px;
      border-top: 1px solid #bae6fd;
      padding-top: 10px;
      display: grid;
      gap: 10px;
    }
    .domain-overview-title {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #0f766e;
      font-weight: 700;
    }
    .domain-kpis {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
    }
    .domain-kpi {
      border: 1px solid #cfe8ff;
      border-radius: 10px;
      background: #fff;
      padding: 8px 10px;
    }
    .domain-kpi-value {
      display: block;
      font-weight: 700;
      font-size: 20px;
      color: #0f172a;
      line-height: 1.1;
    }
    .domain-kpi-label {
      display: block;
      margin-top: 3px;
      font-size: 11px;
      color: #64748b;
      line-height: 1.3;
    }
    .domain-grid {
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      gap: 8px;
    }
    .domain-box {
      border: 1px solid #dbeafe;
      border-radius: 10px;
      background: #fff;
      padding: 9px 10px;
    }
    .domain-box-title {
      display: block;
      margin-bottom: 6px;
      font-size: 12px;
      font-weight: 700;
      color: #1e293b;
    }
    .domain-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
    }
    .domain-table th,
    .domain-table td {
      text-align: left;
      border-bottom: 1px solid #e2e8f0;
      padding: 5px 6px;
      vertical-align: top;
      white-space: nowrap;
    }
    .domain-table th {
      color: #64748b;
      font-weight: 700;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .domain-table td:last-child {
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .domain-actions {
      margin: 0;
      padding-left: 16px;
      display: grid;
      gap: 4px;
      font-size: 12px;
      color: #334155;
    }
    .issue-tag.issue-tag-clickable {
      cursor: pointer;
      border-color: #93c5fd;
      box-shadow: 0 1px 0 rgba(148, 163, 184, 0.2);
      transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    }
    .issue-tag.issue-tag-clickable:hover {
      background: #eff6ff;
      border-color: #60a5fa;
      box-shadow: 0 2px 0 rgba(96, 165, 250, 0.2);
    }
    .issue-tag.issue-tag-clickable:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }
    .issue-tag.issue-tag-clickable.is-active {
      background: #dbeafe;
      border-color: #2563eb;
      color: #1e3a8a;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
    }
    .diff-panel {
      white-space: normal;
      border: 1px solid #c7d2fe;
      background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    }
    .diff-title {
      display: block;
      margin-bottom: 10px;
      color: #1e293b;
      font-size: 16px;
      letter-spacing: -0.01em;
    }
    .diff-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 8px;
    }
    .diff-item {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 8px 10px;
    }
    .diff-item-label {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 3px;
    }
    .diff-item-value {
      font-size: 24px;
      line-height: 1;
      font-weight: 700;
      color: #0f172a;
    }
    details summary {
      color: var(--muted);
      cursor: pointer;
      font-size: 13px;
      user-select: none;
    }
    .app-footer {
      margin: 18px 0 4px;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
    }
    .app-footer a {
      color: #0f766e;
      text-decoration: none;
      font-weight: 700;
    }
    .app-footer a:hover {
      text-decoration: underline;
    }
    .mesh-graph-wrap {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
      overflow: auto;
      margin-bottom: 10px;
      display: none;
    }
    .mesh-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 8px 0 10px;
      flex-wrap: wrap;
    }
    .mesh-interaction-hint {
      font-size: 12px;
      line-height: 1.45;
    }
    .mesh-toolbar-actions {
      display: inline-flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mesh-control-btn {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #0f172a;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }
    .mesh-control-btn:hover {
      background: #f8fafc;
    }
    .mesh-control-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    #mesh-graph {
      width: 100%;
      min-width: 760px;
      height: 420px;
      display: block;
      cursor: grab;
      touch-action: none;
    }
    #mesh-graph.is-dragging {
      cursor: grabbing;
    }
    .mesh-hover-tooltip {
      position: absolute;
      z-index: 20;
      max-width: min(520px, calc(100% - 24px));
      padding: 7px 10px;
      border-radius: 8px;
      border: 1px solid #334155;
      background: rgba(15, 23, 42, 0.95);
      color: #f8fafc;
      font-size: 12px;
      line-height: 1.35;
      pointer-events: none;
      box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
      display: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mesh-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }
    .mesh-box {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px;
      background: #fff;
      font-size: 12px;
      line-height: 1.45;
      white-space: pre-wrap;
    }
    .mesh-box-tree {
      grid-column: 1 / -1;
    }
    .mesh-tree-text {
      margin: 0;
      padding: 0;
      white-space: pre;
      overflow: auto;
      max-height: 360px;
      background: transparent;
      color: #0f172a;
      font-size: 13px;
      line-height: 1.45;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    }
    .mesh-box-title {
      display: block;
      font-weight: 700;
      margin-bottom: 6px;
      color: #0f172a;
    }
    .mesh-link-list {
      margin: 0;
      padding-left: 16px;
      display: grid;
      gap: 4px;
    }
    .mesh-link-list li {
      min-width: 0;
    }
    .mesh-link {
      color: #0f4c81;
      text-decoration: none;
      border-bottom: 1px dotted #94a3b8;
    }
    .mesh-link:hover {
      color: #1d4ed8;
      text-decoration: underline;
    }
    .mesh-kpis {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }
    .mesh-kpi {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px;
      background: #fff;
    }
    .mesh-kpi b {
      display: block;
      font-size: 22px;
      line-height: 1.05;
      margin-bottom: 4px;
      color: #0f172a;
    }
    .mesh-kpi span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .mesh-warnings {
      display: grid;
      gap: 8px;
      margin-bottom: 8px;
    }
    .mesh-warning {
      border: 1px solid #fdba74;
      background: #fff7ed;
      color: #9a3412;
      border-radius: 10px;
      padding: 10px;
      font-size: 12px;
      line-height: 1.45;
      white-space: pre-wrap;
    }
    .mesh-actions {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      margin-bottom: 10px;
      overflow: hidden;
    }
    .mesh-actions-head {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      background: #f8fafc;
    }
    .mesh-actions-empty {
      padding: 10px 12px;
      color: var(--muted);
      font-size: 12px;
    }
    .mesh-actions-table-wrap {
      overflow: auto;
      max-height: 310px;
    }
    .mesh-actions-table {
      width: 100%;
      min-width: 980px;
      border-collapse: collapse;
      font-size: 12px;
    }
    .mesh-actions-table th,
    .mesh-actions-table td {
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
      padding: 8px 10px;
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
    }
    .mesh-actions-table th:last-child,
    .mesh-actions-table td:last-child {
      border-right: 0;
    }
    .mesh-actions-table th {
      background: #f8fafc;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .mesh-priority {
      display: inline-block;
      border-radius: 999px;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid transparent;
    }
    .mesh-priority.high {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #b91c1c;
    }
    .mesh-priority.medium {
      background: #ffedd5;
      border-color: #fdba74;
      color: #c2410c;
    }
    .mesh-priority.low {
      background: #e0f2fe;
      border-color: #7dd3fc;
      color: #0369a1;
    }
    .mesh-sources {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      max-width: 460px;
    }
    .mesh-source {
      border: 1px solid #bfdbfe;
      background: #eff6ff;
      color: #1e40af;
      border-radius: 999px;
      padding: 3px 8px;
      font-size: 11px;
      line-height: 1.2;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mesh-source.mesh-link {
      border-bottom: 1px solid #bfdbfe;
      text-decoration: none;
    }
    .mesh-opportunities {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      margin-bottom: 10px;
      overflow: hidden;
    }
    .mesh-opps-wrap {
      padding: 10px 12px;
    }
    .mesh-opps-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }
    .mesh-opps-head strong {
      font-size: 13px;
      color: #0f172a;
    }
    .mesh-opps-actions {
      display: inline-flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mesh-opps-select {
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #fff;
      color: #0f172a;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      min-width: 150px;
    }
    .mesh-opps-meta {
      margin-bottom: 8px;
    }
    .mesh-opps-table-wrap {
      overflow: auto;
      max-height: 340px;
      border: 1px solid var(--border);
      border-radius: 8px;
    }
    .mesh-opps-table {
      width: 100%;
      min-width: 980px;
      border-collapse: collapse;
      font-size: 12px;
    }
    .mesh-opps-table th,
    .mesh-opps-table td {
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
      padding: 8px 9px;
      white-space: nowrap;
    }
    .mesh-opps-table th:last-child,
    .mesh-opps-table td:last-child {
      border-right: 0;
    }
    .mesh-opps-table th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #f8fafc;
      cursor: pointer;
      color: #334155;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .mesh-opps-table th.sort-asc::after {
      content: " ▲";
      font-size: 10px;
      color: #64748b;
    }
    .mesh-opps-table th.sort-desc::after {
      content: " ▼";
      font-size: 10px;
      color: #64748b;
    }
    .mesh-opp-score {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid transparent;
    }
    .mesh-opp-score.impact {
      background: #dbeafe;
      color: #1e40af;
      border-color: #93c5fd;
    }
    .mesh-opp-score.effort {
      background: #fef3c7;
      color: #92400e;
      border-color: #fcd34d;
    }
    .mesh-opp-score.confidence.high {
      background: #dcfce7;
      color: #166534;
      border-color: #86efac;
    }
    .mesh-opp-score.confidence.medium {
      background: #fef3c7;
      color: #92400e;
      border-color: #fcd34d;
    }
    .mesh-opp-score.confidence.low {
      background: #fee2e2;
      color: #991b1b;
      border-color: #fca5a5;
    }
    .tech-kpis {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
      margin-bottom: 10px;
    }
    .tech-kpi {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      padding: 10px;
    }
    .tech-kpi b {
      display: block;
      font-size: 22px;
      line-height: 1.05;
      color: #0f172a;
      margin-bottom: 4px;
    }
    .tech-kpi span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .redirect-flow {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      padding: 12px;
      margin-bottom: 10px;
    }
    .redirect-flow-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .redirect-flow-head strong {
      display: block;
      color: #0f172a;
      font-size: 24px;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }
    .redirect-flow-head span {
      display: block;
      color: #475569;
      font-size: 12px;
      line-height: 1.35;
      margin-top: 2px;
    }
    .redirect-flow-chain {
      display: grid;
      gap: 8px;
    }
    .redirect-flow-step {
      border: 1px solid #dbeafe;
      border-radius: 10px;
      background: #f8fafc;
      padding: 10px 12px;
    }
    .redirect-flow-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .redirect-flow-url {
      min-width: 0;
      flex: 1 1 340px;
      font-size: 18px;
      line-height: 1.35;
      font-weight: 700;
      color: #0f172a;
      word-break: break-word;
    }
    .redirect-flow-url .mesh-link,
    .redirect-flow-next .mesh-link {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .redirect-flow-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #0f172a;
      font-size: 18px;
      line-height: 1.35;
      font-weight: 600;
    }
    .redirect-flow-label {
      color: #1e293b;
      font-weight: 600;
    }
    .redirect-http-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 54px;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 3px 10px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
    }
    .redirect-http-badge.permanent {
      background: #ecfdf5;
      border-color: #86efac;
      color: #166534;
    }
    .redirect-http-badge.temporary {
      background: #fffbeb;
      border-color: #fcd34d;
      color: #92400e;
    }
    .redirect-http-badge.success {
      background: #eff6ff;
      border-color: #93c5fd;
      color: #1d4ed8;
    }
    .redirect-http-badge.error {
      background: #fef2f2;
      border-color: #fca5a5;
      color: #991b1b;
    }
    .redirect-http-badge.neutral {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #334155;
    }
    .redirect-flow-next {
      margin-top: 8px;
      color: #475569;
      font-size: 12px;
      line-height: 1.4;
      word-break: break-word;
    }
    .redirect-flow-next span {
      font-weight: 700;
    }
    .redirect-flow-arrow {
      text-align: center;
      color: #94a3b8;
      font-size: 36px;
      line-height: 1;
      margin: 2px 0 1px;
      user-select: none;
    }
    .redirect-tech-details {
      margin-bottom: 10px;
    }
    .redirect-tech-details > summary {
      cursor: pointer;
      color: #475569;
      font-size: 13px;
      font-weight: 700;
      user-select: none;
      margin-bottom: 6px;
    }
    .redirect-tech-details[open] > summary {
      margin-bottom: 8px;
    }
    .redirect-tech-details .status {
      margin: 0;
      white-space: pre-wrap;
    }
    .tech-checks {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      overflow: hidden;
      margin-bottom: 10px;
    }
    .tech-checks-head {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      background: #f8fafc;
    }
    .tech-checks-table-wrap {
      overflow: auto;
      max-height: 360px;
    }
    .tech-checks-table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
      font-size: 12px;
    }
    .tech-checks-table th,
    .tech-checks-table td {
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
      padding: 8px 10px;
      white-space: nowrap;
    }
    .tech-checks-table th:last-child,
    .tech-checks-table td:last-child {
      border-right: 0;
    }
    .tech-checks-table th {
      background: #f8fafc;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: #475569;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .tech-check-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 700;
      border: 1px solid transparent;
    }
    .tech-check-badge.pass {
      background: #ecfdf5;
      border-color: #86efac;
      color: #166534;
    }
    .tech-check-badge.warn {
      background: #fffbeb;
      border-color: #fcd34d;
      color: #92400e;
    }
    .tech-check-badge.fail {
      background: #fef2f2;
      border-color: #fca5a5;
      color: #991b1b;
    }
    .tech-recos {
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      padding: 10px 12px;
    }
    .tech-recos-head {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 8px;
    }
    .tech-recos-list {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 6px;
      color: #334155;
      font-size: 13px;
    }
    .tech-checklist-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 8px;
      margin-bottom: 10px;
    }
    .tech-checklist-block {
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #f8fafc;
      padding: 8px 10px;
    }
    .tech-checklist-block.high {
      border-color: #fecaca;
      background: #fff1f2;
    }
    .tech-checklist-block.medium {
      border-color: #fed7aa;
      background: #fff7ed;
    }
    .tech-checklist-block.low {
      border-color: #bfdbfe;
      background: #eff6ff;
    }
    .tech-checklist-title {
      font-size: 12px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 6px;
    }
    .tech-details-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 8px;
      color: #334155;
      font-size: 12px;
      line-height: 1.45;
    }
    .tech-details-grid > div {
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      padding: 8px 10px;
      min-width: 0;
    }
    @media (max-width: 860px) {
      form { grid-template-columns: 1fr; }
      .mesh-form { grid-template-columns: 1fr; }
      .tech-form { grid-template-columns: 1fr; }
      .geo-form { grid-template-columns: 1fr; }
      .filter-grid { grid-template-columns: 1fr; }
      .filter-actions {
        justify-content: stretch;
      }
      .filter-reset-btn {
        max-width: none;
      }
      .title-row {
        flex-direction: column;
        align-items: flex-start;
      }
      .card.csv-full-width {
        width: 100dvw;
        max-width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
      }
      @supports not (width: 100dvw) {
        .card.csv-full-width {
          width: 100vw;
          max-width: 100vw;
          margin-left: calc(50% - 50vw);
          margin-right: calc(50% - 50vw);
        }
      }
      .insights-title { font-size: 22px; }
      .insight-chip-value { font-size: 20px; }
      .issue-tag span { max-width: 180px; }
      .domain-grid { grid-template-columns: 1fr; }
      .redirect-flow-head strong { font-size: 20px; }
      .redirect-flow-url,
      .redirect-flow-status { font-size: 16px; }
      .redirect-flow-arrow { font-size: 30px; }
    }
