/* Extracted repeated page-family styles: xroad-live-dashboard.css */

/* xroad-live-dashboard */
/* * { margin: 0; padding: 0; }
  html, body { height: 100%; } */
  body { overflow: hidden; }
  .app {
    display: grid;
    grid-template-columns: 360px 1fr 320px;
    grid-template-rows: 76px 1fr;
    height: 100vh;
  }
  header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    z-index: 10;
  }/* 
  .brand {
    display: flex; align-items: center; gap: 14px;
    font-weight: 700; letter-spacing: 0.04em;
  } */
  .brand-logo {
    width: 32px; height: 32px;
    background: var(--text);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-bright); font-weight: 900; font-size: 14px;
  }
  .brand-text { font-size: 14px; color: var(--text); }
  .brand-text span { color: var(--text-dim); margin-left: 8px; font-weight: 400; }
  .header-meta { display: flex; gap: 24px; align-items: center; font-size: 12px; color: var(--text-dim); }
  .header-meta strong { color: var(--text); font-weight: 500; }
  .live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); margin-right: 8px;

    animation: pulse 1.6s infinite;
  }

  .sidebar-left, .sidebar-right {
    overflow-y: auto;
    padding: 28px 24px;
    border-right: 1px solid var(--line);
    background: var(--bg-2);
  }
  .sidebar-right { border-right: none; border-left: 1px solid var(--line); }
  .sidebar-left::-webkit-scrollbar, .sidebar-right::-webkit-scrollbar { width: 6px; }
  .sidebar-left::-webkit-scrollbar-thumb, .sidebar-right::-webkit-scrollbar-thumb { background: rgba(45,44,48,0.18); border-radius: 3px;}
  .hero-stat { margin-bottom: 28px; }
  .hero-stat .label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-dim); margin-bottom: 6px; font-weight: 600;
  }
  .hero-stat .value {
    font-size: 36px; font-weight: 700; line-height: 1;
    letter-spacing: -0.02em; color: var(--text);
  }
  .hero-stat .sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
  .accent-purple { color: var(--purple); }
  .accent-green { color: var(--green); }
  .section-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-dim); font-weight: 600;
    margin: 24px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .cat-row {
    display: grid; grid-template-columns: 1fr 70px;
    gap: 8px; align-items: center;
    padding: 7px 0; font-size: 13px;
  }
  .cat-bar {
    grid-column: 1 / -1;
    height: 3px; background: rgba(45,44,48,0.08);
    border-radius: 2px; overflow: hidden;
    margin-top: 4px;
  }
  .cat-bar-fill { height: 100%; background: var(--purple); }
  .cat-name { color: var(--text); }
  .cat-count { color: var(--text-dim); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

  .canvas-wrap {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse at center, #FFFFFF 0%, #F4F6F9 100%);
  }
  /* subtle grid */
  .canvas-wrap::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(45,44,48,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(45,44,48,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  svg.network { width: 100%; height: 100%; display: block; cursor: grab; position: relative; }
  svg.network:active { cursor: grabbing; }
  .legend {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 14px 18px; border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(45,44,48,0.06);
  }
  .legend-row { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--text); }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; }
  .legend-line { width: 16px; height: 2px; }
  .controls {
    position: absolute; top: 20px; right: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 14px 18px; border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(45,44,48,0.06);
    min-width: 220px;
  }
  .controls .label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 600; }
  .hour-bars { display: flex; align-items: flex-end; gap: 2px; height: 50px; }
  .hour-bar { flex: 1; background: var(--purple); opacity: 0.30; border-radius: 1px 1px 0 0; transition: opacity 0.2s; min-height: 2px; }
  .hour-bar.active { opacity: 1; }
  .hour-labels { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 10px; margin-top: 4px; }

  .node-tooltip {
    position: fixed; pointer-events: none;
    background: var(--text);
    color: #FFFFFF;
    border: none;
    padding: 12px 16px; border-radius: 4px;
    font-size: 12px; max-width: 280px;
    opacity: 0; transition: opacity 0.15s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(45,44,48,0.25);
  }
  .node-tooltip h4 { font-size: 14px; margin-bottom: 4px; color: var(--green-bright); }
  .node-tooltip .et { color: rgba(255,255,255,0.6); font-size: 11px; font-style: italic; margin-bottom: 8px; }
  .node-tooltip .stat { display: flex; justify-content: space-between; gap: 12px; margin: 3px 0; }
  .node-tooltip .stat span:first-child { color: rgba(255,255,255,0.65); }
  .node-tooltip .stat .v { font-variant-numeric: tabular-nums; color: #FFFFFF; }

  .top-edges-list { font-size: 12px; }
  .edge-row {
    display: grid; grid-template-columns: 1fr auto;
    gap: 10px; padding: 9px 0;
    border-bottom: 1px dashed var(--line);
  }
  .edge-flow { color: var(--text); line-height: 1.4; }
  .edge-flow .from { color: var(--green); font-weight: 500; }
  .edge-flow .to { color: var(--purple); font-weight: 500; }
  .edge-flow .arrow { color: var(--text-dim); margin: 0 4px; }
  .edge-count { color: var(--text-dim); font-variant-numeric: tabular-nums; font-size: 11px; align-self: center; }

  .footer-cta {
    margin-top: 32px; padding: 20px;
    background: var(--text);
    color: #FFFFFF;
    border-radius: 4px;
  }
  .footer-cta h3 {
    font-size: 11px; margin-bottom: 8px;
    color: var(--green-bright);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  }
  .footer-cta p { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.85); }
  .footer-cta a {
    display: inline-block; margin-top: 14px;
    color: var(--green-bright); text-decoration: none;
    font-size: 12px; font-weight: 600;
    border-bottom: 1px solid var(--green-bright);
    padding-bottom: 1px;
  }

  .intro-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--purple);
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 28px;
  }
  .intro-card h3 {
    font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--purple); font-weight: 700;
    margin-bottom: 8px;
  }
  .intro-card p { font-size: 12.5px; line-height: 1.55; color: var(--text-mid); }
  .intro-card p + p { margin-top: 8px; }

  .reg-links { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }
  .reg-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--purple);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  }
  .reg-link:hover {
    border-color: var(--purple);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55,33,101,0.08);
  }
  .reg-link .reg-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25; }
  .reg-link .reg-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.3; }
  .reg-link .reg-arrow { color: var(--purple); font-weight: 700; font-size: 14px; }

  .ai-note {
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 11px; line-height: 1.5;
    color: var(--text-dim);
    background: rgba(45,44,48,0.04);
    border-radius: 4px;
    border-left: 2px solid var(--text-dim);
  }
  .ai-note strong { color: var(--text); font-weight: 600; }
  a.brand { text-decoration: none; color: inherit; cursor: pointer; }
  a.brand:hover .brand-text { color: var(--purple); }

  /* ===== full-width vertical layout ===== */
  html, body { height: auto; min-height: 100%; }
  body { overflow-x: hidden; overflow-y: auto; }
  .app { display: block; height: auto; }
  header { background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
  .header-meta { display: flex; gap: 24px; align-items: center; font-size: 12px; color: var(--text-dim); }
  /* sections */
  section.eco-section { padding: 56px 32px; border-bottom: 1px solid var(--line); }
  section.eco-section.alt { background: var(--bg-2); }
  .eco-inner { max-width: 1440px; margin: 0 auto; }
  .eco-narrow { max-width: 920px; margin: 0 auto; }
  section.eco-section h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-bottom: 12px; }
  section.eco-section h2 .accent { color: var(--purple); }
  section.eco-section p.lead { font-size: 16px; line-height: 1.6; color: var(--text-mid); font-weight: 300; }
  section.eco-section p.lead + p.lead { margin-top: 14px; }
  /* metrics row — 4 stat cards horizontal */
  .metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
  .metric-card { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
  section.eco-section.alt .metric-card { background: var(--bg); }
  .metric-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }
  .metric-card .value { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  .metric-card .value.green { color: var(--green); }
  .metric-card .value.purple { color: var(--purple); }
  .metric-card .sub { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.4; }
  /* use-cases full width: keep cat-rows but wider */
  .usecases-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 20px; }
  .usecases-grid .cat-row { padding: 12px 16px; }
  /* diagram container with side gutter for scroll */
  .diagram-wrap { max-width: 1600px; margin: 24px auto 0; height: 760px; position: relative; border: 1px solid var(--line); border-radius: 4px; background: radial-gradient(ellipse at center, #FFFFFF 0%, #F4F6F9 100%); overflow: hidden; }
  .diagram-wrap svg.network { width: 100%; height: 100%; display: block; cursor: grab; }
  /* split view */
  .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
  .split-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; margin: 0 0 16px; }
  /* consumer cards mirror reg cards */
  .con-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 3px; text-decoration: none; color: var(--text); transition: all 0.12s; margin-bottom: 6px; gap: 12px; }
  .con-link:hover { border-color: var(--green); transform: translateX(2px); }
  .con-link .con-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25; }
  .con-link .con-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.3; }
  .con-link .con-pill { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 2px; background: var(--green-tint); color: var(--green); white-space: nowrap; letter-spacing: 0.04em; text-transform: uppercase; }
  /* AI note footer */
  footer.ai-note-footer { padding: 28px 32px; background: var(--bg-2); font-size: 11px; line-height: 1.6; color: var(--text-dim); text-align: center; border-top: 1px solid var(--line); }
  footer.ai-note-footer strong { color: var(--text-mid); }
  @media (max-width: 900px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } .split-grid { grid-template-columns: 1fr; } }
