/* ═══════════════════════════════════════════════════════════════
   AI Link Design System v2 — ailink-ds.css
   Phase 0 | 2026-03-24
   
   모든 클래스: .al2-  프리픽스 (기존 CSS와 충돌 방지)
   모든 변수:  --al2- 프리픽스 (기존 design-system.css 변수와 충돌 방지)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section 1: CSS Variables ─── */
:root {
  /* Brand */
  --al2-brand: #6C3AE0;
  --al2-brand-light: #EDE5FB;
  --al2-brand-dark: #4A1FB8;
  --al2-brand-dim: rgba(108,58,224,0.08);

  /* Semantic Colors */
  --al2-blue: #2563EB;
  --al2-blue-light: #DBEAFE;
  --al2-cyan: #0891B2;
  --al2-cyan-light: #CFFAFE;
  --al2-green: #059669;
  --al2-green-light: #D1FAE5;
  --al2-amber: #D97706;
  --al2-amber-light: #FEF3C7;
  --al2-red: #DC2626;
  --al2-red-light: #FEE2E2;

  /* Gray Scale */
  --al2-g900: #0F172A;
  --al2-g800: #1E293B;
  --al2-g700: #334155;
  --al2-g600: #475569;
  --al2-g500: #64748B;
  --al2-g400: #94A3B8;
  --al2-g300: #CBD5E1;
  --al2-g200: #E2E8F0;
  --al2-g100: #F1F5F9;
  --al2-g50: #F8FAFC;
  --al2-white: #FFF;

  /* Typography */
  --al2-font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --al2-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Radius */
  --al2-radius-sm: 6px;
  --al2-radius-md: 10px;
  --al2-radius-lg: 14px;
  --al2-radius-full: 100px;

  /* Shadows */
  --al2-shadow: 0 4px 12px rgba(15,23,42,0.07);
  --al2-shadow-lg: 0 12px 32px rgba(15,23,42,0.1);

  /* Layout Dimensions */
  --al2-topbar-h: 40px;
  --al2-gnb-h: 56px;
  --al2-sidebar-w: 224px;
}


/* ─── Section 2: Reset (scoped to .al2-app) ─── */
.al2-app *,
.al2-app *::before,
.al2-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.al2-app {
  font-family: var(--al2-font-sans);
  background: var(--al2-g50);
  color: var(--al2-g800);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

.al2-app a { text-decoration: none; color: inherit; }
.al2-app button { font-family: inherit; cursor: pointer; }


/* ─── Section 3: Topbar ─── */
.al2-topbar {
  height: var(--al2-topbar-h);
  background: var(--al2-g900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.al2-topbar-services {
  display: flex;
  align-items: center;
  gap: 0;
}

.al2-topbar-svc {
  padding: 0 14px;
  height: var(--al2-topbar-h);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--al2-g400);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}

.al2-topbar-svc:hover { color: var(--al2-g200); }
.al2-topbar-svc.on { color: #fff; border-bottom-color: var(--al2-brand); }

.al2-topbar-svc .al2-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--al2-green);
  animation: al2-pulse-dot 2s infinite;
}

.al2-topbar-svc .al2-cnt {
  font-family: var(--al2-font-mono);
  font-size: .6rem;
  background: rgba(255,255,255,.12);
  padding: 1px 5px;
  border-radius: var(--al2-radius-full);
  margin-left: 2px;
}

@keyframes al2-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.al2-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.al2-topbar-right a {
  font-size: .72rem;
  color: var(--al2-g400);
}
.al2-topbar-right a:hover { color: #fff; }


/* ─── Section 4: GNB (Global Navigation Bar) ─── */
.al2-gnb {
  height: var(--al2-gnb-h);
  background: var(--al2-white);
  border-bottom: 1px solid var(--al2-g200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: var(--al2-topbar-h);
  left: 0;
  right: 0;
  z-index: 999;
}

.al2-gnb-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.al2-gnb-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.al2-gnb-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--al2-brand);
  border-radius: var(--al2-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
}

.al2-gnb-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--al2-g900);
  letter-spacing: -.02em;
}

.al2-gnb-myapp {
  padding: 6px 12px;
  background: var(--al2-g900);
  color: #fff;
  border: none;
  border-radius: var(--al2-radius-sm);
  font-size: .73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.al2-gnb-search {
  flex: 1;
  max-width: 480px;
  margin: 0 20px;
  position: relative;
}

.al2-gnb-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-full);
  font-size: .83rem;
  font-family: inherit;
  background: var(--al2-g50);
  outline: none;
  transition: all .2s;
}

.al2-gnb-search input:focus {
  border-color: var(--al2-brand);
  background: var(--al2-white);
  box-shadow: 0 0 0 3px rgba(108,58,224,.1);
}

.al2-gnb-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--al2-g400);
  font-size: .82rem;
}

.al2-gnb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.al2-gnb-btn {
  padding: 7px 14px;
  border-radius: var(--al2-radius-sm);
  font-size: .78rem;
  font-weight: 600;
  border: none;
  transition: all .15s;
}

.al2-gnb-btn.outline {
  background: none;
  border: 1px solid var(--al2-g300);
  color: var(--al2-g700);
}
.al2-gnb-btn.outline:hover { border-color: var(--al2-g400); }

.al2-gnb-btn.primary {
  background: var(--al2-brand);
  color: #fff;
}
.al2-gnb-btn.primary:hover { background: var(--al2-brand-dark); }

.al2-gnb-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--al2-radius-sm);
  background: linear-gradient(135deg, var(--al2-brand), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/* ─── GNB Notification Badge (Phase 6) ─── */
#gnb-notify-btn { position: relative; }
.al2-gnb-notify-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--al2-red);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}


/* ─── Section 5: Sidebar ─── */
.al2-sidebar {
  width: var(--al2-sidebar-w);
  position: fixed;
  top: calc(var(--al2-topbar-h) + var(--al2-gnb-h));
  left: 0;
  bottom: 0;
  background: var(--al2-white);
  border-right: 1px solid var(--al2-g200);
  overflow-y: auto;
  z-index: 998;
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--al2-g200) transparent;
}

.al2-sidebar::-webkit-scrollbar { width: 4px; }
.al2-sidebar::-webkit-scrollbar-thumb { background: var(--al2-g200); border-radius: 2px; }

.al2-sb-section-label {
  font-size: .63rem;
  font-weight: 700;
  color: var(--al2-g400);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 16px 4px;
}

.al2-sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--al2-g600);
  cursor: pointer;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.al2-sb-item:hover { background: var(--al2-g50); color: var(--al2-g800); }
.al2-sb-item.on {
  background: var(--al2-brand-light);
  color: var(--al2-brand);
  border-left-color: var(--al2-brand);
  font-weight: 600;
}

.al2-sb-item i.icon { width: 18px; text-align: center; font-size: .82rem; flex-shrink: 0; }
.al2-sb-item .emoji { width: 18px; text-align: center; font-size: .85rem; flex-shrink: 0; }
.al2-sb-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.al2-sb-item .al2-badge {
  margin-left: auto;
  font-family: var(--al2-font-mono);
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--al2-radius-full);
  color: #fff;
}

.al2-badge-r { background: var(--al2-red); }
.al2-badge-b { background: var(--al2-blue); }
.al2-badge-g { background: var(--al2-green); }
.al2-badge-a { background: var(--al2-amber); }
.al2-badge-p { background: var(--al2-brand); }
.al2-badge-gr { background: var(--al2-g200); color: var(--al2-g600); }

.al2-sb-item .arrow { margin-left: auto; font-size: .55rem; color: var(--al2-g400); transition: transform .2s; }
.al2-sb-item.expanded .arrow { transform: rotate(90deg); }

.al2-sb-sub { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--al2-g50); }
.al2-sb-sub.open { max-height: 400px; }

.al2-sb-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 42px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--al2-g500);
  cursor: pointer;
  transition: all .15s;
}

.al2-sb-sub-item:hover { color: var(--al2-g800); background: var(--al2-g100); }
.al2-sb-sub-item.on { color: var(--al2-brand); font-weight: 600; }
.al2-sb-sub-item .cnt { font-family: var(--al2-font-mono); font-size: .65rem; color: var(--al2-g400); margin-left: auto; }

.al2-sb-divider { height: 1px; background: var(--al2-g100); margin: 8px 16px; }

/* Sidebar Profile Card */
.al2-sb-profile { padding: 12px 14px; border-bottom: 1px solid var(--al2-g100); }

.al2-sb-profile-main {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 5px;
  border-radius: var(--al2-radius-sm);
  transition: background .15s;
}
.al2-sb-profile-main:hover { background: var(--al2-g50); }

.al2-sb-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--al2-radius-sm);
  background: linear-gradient(135deg, var(--al2-brand), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.al2-sb-avatar .vf {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  background: var(--al2-green);
  border-radius: 50%;
  border: 2px solid var(--al2-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: #fff;
}

.al2-sb-pinfo { flex: 1; min-width: 0; }

.al2-sb-pname {
  font-size: .78rem;
  font-weight: 700;
  color: var(--al2-g900);
  display: flex;
  align-items: center;
  gap: 4px;
}

.al2-sb-pname .role {
  font-size: .58rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--al2-amber-light);
  color: var(--al2-amber);
  font-weight: 700;
}

.al2-sb-pco { font-size: .68rem; color: var(--al2-g400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.al2-sb-comp { margin-top: 8px; padding: 7px 8px; background: var(--al2-g50); border-radius: var(--al2-radius-sm); }
.al2-sb-comp-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.al2-sb-comp-lbl { font-size: .62rem; color: var(--al2-g400); }
.al2-sb-comp-pct { font-size: .68rem; font-weight: 700; color: var(--al2-brand); font-family: var(--al2-font-mono); }
.al2-sb-comp-track { height: 3px; background: var(--al2-g200); border-radius: 2px; overflow: hidden; }
.al2-sb-comp-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--al2-brand), #a78bfa); transition: width .6s ease; }


/* ─── Section 6: Main Content Area ─── */
.al2-main {
  margin-left: var(--al2-sidebar-w);
  margin-top: calc(var(--al2-topbar-h) + var(--al2-gnb-h));
  padding: 20px 24px;
  height: calc(100vh - var(--al2-topbar-h) - var(--al2-gnb-h));
  overflow-y: auto;
}

.al2-page { display: none; }
.al2-page.on { display: block; }


/* ─── Section 7: Breadcrumb ─── */
.al2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--al2-g400);
  margin-bottom: 14px;
}
.al2-breadcrumb a { color: var(--al2-g400); }
.al2-breadcrumb a:hover { color: var(--al2-g700); }
.al2-breadcrumb .cur { color: var(--al2-g700); font-weight: 600; }


/* ─── Section 8: Page Header ─── */
.al2-page-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.al2-page-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--al2-g900);
  letter-spacing: -.02em;
}

.al2-page-header-desc {
  font-size: .82rem;
  color: var(--al2-g500);
  margin-top: 3px;
}

.al2-page-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}


/* ─── Section 9: Source Tag ─── */
.al2-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: var(--al2-g400);
  padding: 5px 10px;
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-sm);
  margin-bottom: 14px;
}

.al2-source-tag .al2-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--al2-green);
  animation: al2-pulse-dot 2s infinite;
}

.al2-source-tag strong { color: var(--al2-g600); font-weight: 600; }


/* ─── Section 10: KPI / DataCard ─── */
.al2-kpi-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.al2-kpi-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.al2-kpi-grid.c3 { grid-template-columns: repeat(3, 1fr); }

.al2-data-card {
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-lg);
  padding: 15px 16px;
  position: relative;
  overflow: hidden;
  transition: all .15s;
}
.al2-data-card:hover { box-shadow: var(--al2-shadow); transform: translateY(-1px); }

.al2-data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.al2-data-card.a-blue::before   { background: var(--al2-blue); }
.al2-data-card.a-red::before    { background: var(--al2-red); }
.al2-data-card.a-green::before  { background: var(--al2-green); }
.al2-data-card.a-amber::before  { background: var(--al2-amber); }
.al2-data-card.a-brand::before  { background: var(--al2-brand); }
.al2-data-card.a-cyan::before   { background: var(--al2-cyan); }

.al2-dc-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--al2-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  margin-bottom: 8px;
}
.al2-dc-icon.blue  { background: var(--al2-blue-light);  color: var(--al2-blue); }
.al2-dc-icon.red   { background: var(--al2-red-light);   color: var(--al2-red); }
.al2-dc-icon.green { background: var(--al2-green-light); color: var(--al2-green); }
.al2-dc-icon.amber { background: var(--al2-amber-light); color: var(--al2-amber); }
.al2-dc-icon.brand { background: var(--al2-brand-light); color: var(--al2-brand); }
.al2-dc-icon.cyan  { background: var(--al2-cyan-light);  color: var(--al2-cyan); }

.al2-dc-val {
  font-family: var(--al2-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--al2-g900);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.al2-dc-lbl { font-size: .75rem; color: var(--al2-g500); margin-top: 2px; font-weight: 500; }

.al2-dc-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .65rem;
  font-weight: 600;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: var(--al2-radius-full);
}
.al2-dc-delta.up      { background: var(--al2-green-light); color: var(--al2-green); }
.al2-dc-delta.down    { background: var(--al2-red-light);   color: var(--al2-red); }
.al2-dc-delta.neutral { background: var(--al2-g100);        color: var(--al2-g500); }


/* ─── Section 11: Section Card ─── */
.al2-section {
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
}

.al2-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--al2-g100);
}

.al2-section-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--al2-g900);
  display: flex;
  align-items: center;
  gap: 7px;
}

.al2-section-more {
  font-size: .75rem;
  color: var(--al2-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.al2-section-body { padding: 0; }


/* ─── Section 12: Tabs ─── */
.al2-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.al2-tab {
  padding: 6px 14px;
  border-radius: var(--al2-radius-full);
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--al2-g200);
  background: var(--al2-white);
  color: var(--al2-g600);
  transition: all .15s;
}
.al2-tab:hover { border-color: var(--al2-g300); color: var(--al2-g800); }
.al2-tab.on { background: var(--al2-brand); border-color: var(--al2-brand); color: #fff; }


/* ─── Section 13: Ranking Row ─── */
.al2-rank-row {
  display: grid;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--al2-g100);
  transition: background .1s;
}
.al2-rank-row:last-child { border-bottom: none; }
.al2-rank-row:hover { background: var(--al2-g50); }

.al2-rank-row.hdr {
  background: var(--al2-g50);
  font-size: .67rem;
  font-weight: 600;
  color: var(--al2-g400);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.al2-rank-row.c5 { grid-template-columns: 40px 1fr 120px 65px 45px; }

/* Score click hint */
.al2-score-click { cursor: pointer; transition: color .15s; }
.al2-score-click:hover { color: var(--al2-brand); text-decoration: underline; }

/* Score Popover */
.al2-score-popover {
  position: fixed;
  z-index: 9999;
  width: 260px;
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  font-size: .75rem;
  animation: al2-sp-in .15s ease;
  overflow: hidden;
}
@keyframes al2-sp-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

.al2-sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--al2-g50);
  border-bottom: 1px solid var(--al2-g100);
}
.al2-sp-title { font-weight: 600; color: var(--al2-g600); }
.al2-sp-total { font-family: var(--al2-font-mono); font-weight: 700; font-size: 1.1rem; color: var(--al2-brand); }
.al2-sp-max { font-size: .7rem; font-weight: 400; color: var(--al2-g400); }
.al2-sp-close { border: none; background: none; font-size: 1.2rem; color: var(--al2-g400); cursor: pointer; padding: 0 2px; line-height: 1; }
.al2-sp-close:hover { color: var(--al2-g700); }

.al2-sp-section { padding: 8px 14px; }
.al2-sp-section + .al2-sp-section { border-top: 1px solid var(--al2-g100); }

.al2-sp-tier {
  font-size: .65rem;
  font-weight: 600;
  color: var(--al2-g400);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.al2-sp-tier-val { font-family: var(--al2-font-mono); color: var(--al2-g500); }

.al2-sp-row {
  display: grid;
  grid-template-columns: 16px 52px 1fr 36px;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
}
.al2-sp-icon { color: var(--al2-g400); font-size: .6rem; text-align: center; }
.al2-sp-label { color: var(--al2-g600); font-size: .7rem; }
.al2-sp-bar {
  height: 5px;
  background: var(--al2-g100);
  border-radius: 3px;
  overflow: hidden;
}
.al2-sp-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s ease;
}
.al2-sp-val {
  font-family: var(--al2-font-mono);
  font-size: .65rem;
  font-weight: 600;
  color: var(--al2-g500);
  text-align: right;
}

.al2-rank {
  font-family: var(--al2-font-mono);
  font-weight: 700;
  font-size: .85rem;
  color: var(--al2-g400);
  text-align: center;
}

.al2-rank-medal {
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  margin: 0 auto;
}
.al2-rank-medal.gold   { background: #F59E0B; }
.al2-rank-medal.silver { background: #94A3B8; }
.al2-rank-medal.bronze { background: #C2784A; }

/* Product cell in ranking */
.al2-pc { display: flex; align-items: center; gap: 9px; }

.al2-pc-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--al2-radius-sm);
  background: var(--al2-g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex-shrink: 0;
}

.al2-pc-name { font-size: .82rem; font-weight: 600; color: var(--al2-g900); }
.al2-pc-company { font-size: .68rem; color: var(--al2-g400); }

/* Score bar */
.al2-score-track { display: flex; align-items: center; gap: 7px; }

.al2-score-rail {
  flex: 1;
  height: 5px;
  background: var(--al2-g100);
  border-radius: var(--al2-radius-full);
  overflow: hidden;
}

.al2-score-fill {
  height: 100%;
  border-radius: var(--al2-radius-full);
  background: linear-gradient(90deg, var(--al2-blue), var(--al2-brand));
}

.al2-score-num {
  font-family: var(--al2-font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--al2-g700);
  min-width: 22px;
  text-align: right;
}

.al2-reviews { font-size: .7rem; color: var(--al2-g400); text-align: center; }

.al2-trend { font-size: .68rem; text-align: center; }
.al2-trend .u { color: var(--al2-green); font-weight: 600; }
.al2-trend .d { color: var(--al2-red); font-weight: 600; }


/* ─── Section 14: Bid Row ─── */
.al2-bid-row {
  display: grid;
  grid-template-columns: 75px 1fr 110px 54px 34px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--al2-g100);
  transition: background .1s;
  cursor: pointer;
}
.al2-bid-row:hover { background: var(--al2-g50); }
.al2-bid-row:last-child { border-bottom: none; }

.al2-bid-badge {
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--al2-radius-full);
  display: inline-block;
  margin-right: 2px;
}
.al2-bid-badge.pre   { background: var(--al2-blue-light);  color: var(--al2-blue); }
.al2-bid-badge.open  { background: var(--al2-green-light); color: var(--al2-green); }
.al2-bid-badge.big   { background: var(--al2-red-light);   color: var(--al2-red); }
.al2-bid-badge.ai    { background: var(--al2-amber-light); color: var(--al2-amber); }
.al2-bid-badge.match { background: var(--al2-brand-light); color: var(--al2-brand); }

.al2-bid-title { font-size: .82rem; font-weight: 600; color: var(--al2-g900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al2-bid-org { font-size: .68rem; color: var(--al2-g400); margin-top: 1px; display: flex; align-items: center; gap: 3px; }

.al2-bid-amount { font-family: var(--al2-font-mono); font-size: 1rem; font-weight: 700; color: var(--al2-g900); text-align: right; }
.al2-bid-amount .unit { font-size: .68rem; font-weight: 500; color: var(--al2-g500); }

.al2-dday { font-size: .65rem; font-weight: 700; padding: 3px 7px; border-radius: var(--al2-radius-full); text-align: center; }
.al2-dday.urgent { background: var(--al2-red-light);   color: var(--al2-red); }
.al2-dday.soon   { background: var(--al2-amber-light); color: var(--al2-amber); }
.al2-dday.normal { background: var(--al2-g100);        color: var(--al2-g500); }

.al2-bookmark-btn {
  background: none;
  border: none;
  color: var(--al2-g300);
  font-size: .85rem;
  transition: color .15s;
}
.al2-bookmark-btn:hover { color: var(--al2-amber); }


/* ─── Section 15: Quarter Cards ─── */
.al2-quarter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.al2-quarter-card {
  border-radius: var(--al2-radius-md);
  padding: 12px;
  text-align: center;
}
.al2-quarter-card.hot { background: var(--al2-red-light); }
.al2-quarter-card.def { background: var(--al2-g100); }

.al2-quarter-lbl { font-size: .7rem; font-weight: 700; }
.al2-quarter-card.hot .al2-quarter-lbl { color: var(--al2-red); }
.al2-quarter-card.def .al2-quarter-lbl { color: var(--al2-g500); }

.al2-quarter-val { font-family: var(--al2-font-mono); font-size: 1.2rem; font-weight: 700; color: var(--al2-g900); margin-top: 3px; }
.al2-quarter-sub { font-size: .65rem; color: var(--al2-g500); }


/* ─── Section 16: Guide Banner ─── */
.al2-guide-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--al2-brand-light), #f0e7ff);
  border: 1px solid rgba(108,58,224,.15);
  border-radius: var(--al2-radius-lg);
  margin-bottom: 16px;
}

.al2-guide-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--al2-radius-md);
  background: var(--al2-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.al2-guide-banner-text { flex: 1; }
.al2-guide-banner-text strong { font-size: .88rem; color: var(--al2-g900); }
.al2-guide-banner-text p { font-size: .75rem; color: var(--al2-g600); margin-top: 3px; line-height: 1.4; }

.al2-guide-banner-btn {
  padding: 8px 16px;
  background: var(--al2-brand);
  color: #fff;
  border: none;
  border-radius: var(--al2-radius-sm);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.al2-guide-banner-btn:hover { background: var(--al2-brand-dark); }


/* ─── Section 17: Compare Cards ─── */
.al2-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; }

.al2-compare-card {
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-lg);
  padding: 18px;
  transition: all .15s;
  position: relative;
}
.al2-compare-card:hover { box-shadow: var(--al2-shadow); }
.al2-compare-card.rec { border-color: var(--al2-brand); border-width: 2px; }

.al2-compare-card .rec-badge {
  position: absolute;
  top: -1px;
  right: 14px;
  background: var(--al2-brand);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 0 0 var(--al2-radius-sm) var(--al2-radius-sm);
}

.al2-compare-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.al2-compare-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--al2-radius-sm);
  background: var(--al2-g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.al2-compare-name { font-size: .88rem; font-weight: 700; color: var(--al2-g900); }
.al2-compare-co { font-size: .7rem; color: var(--al2-g500); }

.al2-compare-score { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.al2-compare-ring { width: 44px; height: 44px; position: relative; }
.al2-compare-ring svg { transform: rotate(-90deg); }
.al2-compare-ring .v {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--al2-font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--al2-g900);
}
.al2-compare-st { font-size: .72rem; color: var(--al2-g500); line-height: 1.4; }

.al2-compare-feat { list-style: none; margin-top: 8px; }
.al2-compare-feat li { font-size: .75rem; color: var(--al2-g600); padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.al2-compare-feat li .fa-check { color: var(--al2-green); font-size: .62rem; }
.al2-compare-feat li .fa-times { color: var(--al2-g300); font-size: .62rem; }

.al2-compare-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-radius: var(--al2-radius-sm);
  font-size: .78rem;
  font-weight: 600;
  border: none;
  transition: all .15s;
}
.al2-compare-btn.pri { background: var(--al2-brand); color: #fff; }
.al2-compare-btn.sec { background: var(--al2-g100); color: var(--al2-g700); }
.al2-compare-btn.pri:hover { background: var(--al2-brand-dark); }
.al2-compare-btn.sec:hover { background: var(--al2-g200); }


/* ─── Section 18: Network Cards ─── */
.al2-network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.al2-network-card {
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-lg);
  padding: 18px;
  text-align: center;
  transition: all .15s;
}
.al2-network-card:hover { box-shadow: var(--al2-shadow); border-color: var(--al2-brand); transform: translateY(-2px); }

.al2-nw-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--al2-g100);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.al2-nw-name { font-size: .88rem; font-weight: 700; color: var(--al2-g900); }
.al2-nw-company { font-size: .72rem; color: var(--al2-g500); margin-top: 2px; }

.al2-nw-tags { display: flex; justify-content: center; gap: 3px; margin-top: 8px; flex-wrap: wrap; }
.al2-nw-tag {
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--al2-radius-full);
  background: var(--al2-g100);
  color: var(--al2-g600);
}
.al2-nw-tag.match { background: var(--al2-brand-light); color: var(--al2-brand); }

.al2-nw-stats { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: .7rem; color: var(--al2-g400); }
.al2-nw-stats span { font-family: var(--al2-font-mono); font-weight: 700; color: var(--al2-g700); }

.al2-nw-btn {
  margin-top: 12px;
  padding: 6px 16px;
  border: 1px solid var(--al2-brand);
  color: var(--al2-brand);
  background: none;
  border-radius: var(--al2-radius-full);
  font-size: .75rem;
  font-weight: 600;
  transition: all .15s;
}
.al2-nw-btn:hover { background: var(--al2-brand); color: #fff; }


/* ─── Section 19: Insight Cards ─── */
.al2-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.al2-insight-card {
  background: var(--al2-white);
  border: 1px solid var(--al2-g200);
  border-radius: var(--al2-radius-lg);
  padding: 16px;
  transition: all .15s;
}
.al2-insight-card:hover { box-shadow: var(--al2-shadow); }

.al2-insight-tag {
  font-size: .62rem;
  font-weight: 700;
  color: var(--al2-brand);
  background: var(--al2-brand-light);
  padding: 2px 7px;
  border-radius: var(--al2-radius-full);
  display: inline-block;
  margin-bottom: 7px;
}

.al2-insight-title { font-size: .88rem; font-weight: 700; color: var(--al2-g900); line-height: 1.4; margin-bottom: 6px; }
.al2-insight-desc { font-size: .75rem; color: var(--al2-g500); line-height: 1.5; }
.al2-insight-meta { font-size: .68rem; color: var(--al2-g400); margin-top: 8px; }


/* ─── Section 20: Grid Helpers ─── */
.al2-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.al2-g12-8 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }


/* ─── Section 21: Chart ─── */
.al2-chart-svg { width: 100%; height: 120px; }
.al2-chart-line { fill: none; stroke: var(--al2-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.al2-chart-area { fill: url(#al2-chart-gradient); opacity: .12; }
.al2-chart-grid-line { stroke: var(--al2-g100); stroke-width: 1; }
.al2-chart-label { font-family: var(--al2-font-mono); font-size: 9px; fill: var(--al2-g400); }
.al2-chart-dot { fill: var(--al2-blue); stroke: var(--al2-white); stroke-width: 2; }


/* ─── Section 22: Scrollbar ─── */
.al2-main::-webkit-scrollbar { width: 5px; }
.al2-main::-webkit-scrollbar-track { background: transparent; }
.al2-main::-webkit-scrollbar-thumb { background: var(--al2-g200); border-radius: 3px; }


/* ─── Section 23: Responsive ─── */
@media (max-width: 900px) {
  .al2-sidebar {
    width: 48px;
  }
  .al2-sidebar span,
  .al2-sb-section-label,
  .al2-badge,
  .arrow,
  .al2-sb-profile,
  .al2-sb-comp,
  .al2-sb-sub {
    display: none !important;
  }

  .al2-main {
    margin-left: 48px;
    padding: 14px;
  }

  .al2-kpi-grid.c4,
  .al2-kpi-grid.c3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .al2-g2,
  .al2-g12-8,
  .al2-compare-grid,
  .al2-network-grid,
  .al2-insight-grid {
    grid-template-columns: 1fr;
  }

  .al2-quarter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}