/* ═══════════════════════════════════════════════════════════════
   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;

  /* Status Palette (consistent across mypage, inbox, notifications) */
  --al2-st-pending: #94A3B8;     /* 대기 — 슬레이트 */
  --al2-st-pending-bg: #F1F5F9;
  --al2-st-active: #0EA5E9;      /* 진행 중 — 스카이 */
  --al2-st-active-bg: #E0F2FE;
  --al2-st-caution: #F59E0B;     /* 주의/SLA 임박 — 앰버 */
  --al2-st-caution-bg: #FEF3C7;
  --al2-st-urgent: #DC2626;      /* 급박/기한 초과 — 레드 */
  --al2-st-urgent-bg: #FEE2E2;
  --al2-st-done: #059669;        /* 완료/수주 — 에메랄드 */
  --al2-st-done-bg: #D1FAE5;
  --al2-st-closed: #6B7280;      /* 종결 — 뉴트럴 그레이 */
  --al2-st-closed-bg: #F3F4F6;

  /* 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: 9000;            /* 페이지 sticky bar(detail.html sticky-tabs/backbar 999)보다 위. 모달 overlay(9998)보다는 아래. */
}

.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 .al2-badge-mini {
  margin-left: 4px;
  font-family: var(--al2-font-mono);
  font-size: .55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--al2-radius-full);
  color: #fff;
  white-space: nowrap;
}
.al2-badge-new { background: var(--al2-green); }
.al2-badge-urg { background: var(--al2-amber); }

.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: 16px;   /* 2026-05-02: 14→16 표준 spacing scale */
}
/* Spacing scale 표준화 (8/12/16/20/24) — 섹션 간격이 너무 빡빡한 것 방지 */
.al2-section + .al2-section { margin-top: 0; }
@media (max-width: 900px) { .al2-section { margin-bottom: 12px; } }

.al2-section-hd,
.al2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;        /* 2026-05-02: 13/16 → 14/20 표준 spacing */
  border-bottom: 1px solid var(--al2-g100);
  flex-wrap: wrap;             /* 모바일 검색·버튼 자연 wrapping */
}
@media (max-width: 900px) {
  .al2-section-hd,
  .al2-section-head { padding: 12px 16px; }
}
/* section-meta — 검색·버튼 그룹 */
.al2-section-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .al2-section-meta {
    width: 100%;          /* 모바일: 검색바 full width */
  }
  .al2-section-meta .al2-input,
  .al2-section-meta .al2-input-sm { flex: 1; }
}

.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;
}

/* 2026-05-02 — Spacing root fix (글로벌 표준 정렬: HubSpot 20·LinkedIn 16) */
.al2-section-body {
  padding: 16px 20px;
}
@media (max-width: 900px) {
  .al2-section-body { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .al2-section-body { padding: 12px 14px; }
}
/* 부모 sectinon이 0 padding 명시한 경우 (e.g. iframe 등) opt-out */
.al2-section-body.no-pad,
.al2-section--flush .al2-section-body { padding: 0; }
/* 폼 row 마진 일관성 (16px) — grid 내부 자식은 제외 (비대칭 방지) */
.al2-section-body > .al2-form-row + .al2-form-row,
.al2-section-body > * > .al2-form-row + .al2-form-row,
.al2-form-section > .al2-form-row + .al2-form-row {
  margin-top: 16px;
}
/* grid 안의 form-row는 grid gap으로 spacing → margin 0 */
.al2-net-form-grid-2 > .al2-form-row,
.al2-net-form-grid-2 > .al2-form-row + .al2-form-row {
  margin-top: 0;
  margin-bottom: 0;
}


/* ───────────────────────────────────────────────────────────────────
   Section 11.4: Form inputs (al2-input family) — global design system
   Promoted from network-hub 2026-05-02
   ─────────────────────────────────────────────────────────────────── */
.al2-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--al2-g200);
  border-radius: 8px;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--al2-g900);
  background: #fff;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  box-sizing: border-box;
  line-height: 1.4;
}
.al2-input::placeholder { color: var(--al2-g500); font-weight: 400; }
.al2-input:hover { border-color: var(--al2-g300); }
.al2-input:focus {
  border-color: var(--al2-brand);
  box-shadow: 0 0 0 3px var(--al2-brand-dim);
}
.al2-input:disabled,
.al2-input[disabled] {
  background: var(--al2-g50);
  color: var(--al2-g500);
  cursor: not-allowed;
}
.al2-input[aria-invalid="true"],
.al2-input.error {
  border-color: #dc2626;
}
.al2-input[aria-invalid="true"]:focus,
.al2-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
/* select: 한국 native arrow 유지, padding-right만 보강 */
select.al2-input {
  padding-right: 28px;
  cursor: pointer;
}
/* textarea: line-height 더 여유 */
textarea.al2-input {
  resize: vertical;
  min-height: 60px;
  line-height: 1.55;
}
/* sizes */
.al2-input-sm {
  padding: 6px 10px;
  font-size: .76rem;
  border-radius: 6px;
}
.al2-input-lg {
  padding: 12px 16px;
  font-size: .92rem;
  border-radius: 10px;
}
/* mobile touch */
@media (max-width: 900px) {
  .al2-input { min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
  .al2-input-sm { min-height: 36px; }
  .al2-input-lg { min-height: 48px; }
}

/* ───────────────────────────────────────────────────────────────────
   Section 11.5: Buttons (al2-btn family) — global design system
   Promoted from network-hub 2026-05-02 + 8 variants (Phase 1+2)
   글로벌 표준 (Stripe/HubSpot/shadcn-ui) 일치
   ─────────────────────────────────────────────────────────────────── */
.al2-btn {
  padding: 8px 16px;
  border: 1px solid var(--al2-g200);
  background: #fff;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--al2-g800);
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
  position: relative;            /* loading spinner overlay 기준 */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.al2-btn:hover {
  border-color: var(--al2-brand);
  color: var(--al2-brand);
}
.al2-btn:active {
  transform: scale(.98);
}
.al2-btn:focus-visible {
  outline: 2px solid var(--al2-brand);
  outline-offset: 2px;
}
.al2-btn:disabled,
.al2-btn[disabled],
.al2-btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Variants ─── */
.al2-btn-primary {
  background: var(--al2-brand);
  color: #fff;
  border-color: var(--al2-brand);
}
.al2-btn-primary:hover {
  background: var(--al2-brand-dark, #5b2bcf);
  color: #fff;
  border-color: var(--al2-brand-dark, #5b2bcf);
}

.al2-btn-secondary {
  background: var(--al2-g100);
  color: var(--al2-g800);
  border-color: var(--al2-g200);
}
.al2-btn-secondary:hover {
  background: var(--al2-g200);
  color: var(--al2-g900);
  border-color: var(--al2-g300);
}

.al2-btn-outline {
  background: transparent;
  color: var(--al2-brand);
  border-color: var(--al2-brand);
}
.al2-btn-outline:hover {
  background: var(--al2-brand-dim);
  color: var(--al2-brand-dark, #5b2bcf);
}

.al2-btn-success {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.al2-btn-success:hover {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.al2-btn-warning {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.al2-btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.al2-btn-danger {
  background: #fff;
  color: #dc2626;
  border-color: var(--al2-g200);
}
.al2-btn-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.al2-btn-danger.al2-btn-primary,
.al2-btn-danger-solid {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.al2-btn-danger.al2-btn-primary:hover,
.al2-btn-danger-solid:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.al2-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--al2-g700);
  padding-left: 10px;
  padding-right: 10px;
}
.al2-btn-ghost:hover {
  background: var(--al2-g100);
  border-color: transparent;
  color: var(--al2-g900);
}

/* ─── Sizes ─── */
.al2-btn-sm {
  padding: 6px 12px;
  font-size: .76rem;
  border-radius: 6px;
  gap: 4px;
}
.al2-btn-lg {
  padding: 12px 22px;
  font-size: .92rem;
  border-radius: 10px;
  gap: 8px;
}

/* ─── Icon-only (a11y 강제) ─── */
.al2-btn--icon {
  padding: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  gap: 0;
}
.al2-btn--icon.al2-btn-sm {
  width: 30px; height: 30px;
}
.al2-btn--icon.al2-btn-lg {
  width: 44px; height: 44px;
}

/* ─── Loading state (aria-busy) ─── */
.al2-btn[aria-busy="true"] {
  pointer-events: none;
  color: transparent !important;
}
.al2-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--al2-brand);
  animation: al2-btn-spin .6s linear infinite;
}
.al2-btn-primary[aria-busy="true"]::after,
.al2-btn-success[aria-busy="true"]::after,
.al2-btn-warning[aria-busy="true"]::after,
.al2-btn-danger-solid[aria-busy="true"]::after {
  color: #fff;
}
@keyframes al2-btn-spin {
  to { transform: rotate(360deg); }
}

/* ─── Mobile touch target (WCAG 2.1, 44px) ─── */
@media (max-width: 900px) {
  .al2-btn {
    min-height: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .al2-btn-sm {
    min-height: 36px;
  }
  .al2-btn-lg {
    min-height: 48px;
  }
  .al2-btn--icon {
    width: 44px; height: 44px;
  }
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .al2-btn,
  .al2-btn:active,
  .al2-btn[aria-busy="true"]::after { transition: none; animation: none; transform: none; }
}

/* ─── 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;
}
/* "솔루션" 헤더 — 데이터 행의 체크박스+아이콘 offset 만큼 padding-left 추가하여 제품명과 시각 정렬 */
.al2-rank-row.hdr > div:nth-child(2) {
  padding-left: 95px;
}

.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 { min-width: 0; }   /* grid 자식이 컨텐츠 크기를 강제하지 못하도록 */
.al2-pc-icon { flex-shrink: 0; }    /* 아이콘 고정 너비 유지 (체크박스 inject 후 nth-child 깨짐 방지: 클래스 기반) */
.al2-cmp-check { flex-shrink: 0; }
.al2-pc > div:last-child { flex: 1 1 0; min-width: 0; }    /* 마지막 자식(name+company 컨테이너)만 확장 */
.al2-pc-name { font-size: .82rem; font-weight: 600; color: var(--al2-g900); line-height: 1.35; word-break: break-word; }
.al2-pc-company {
  font-size: .68rem; color: var(--al2-g400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;     /* 회사명은 항상 1줄 ellipsis */
}
/* detail 패널 열렸을 때만 제품명 2줄 강제 (좁은 폭에서 줄꺾임 방지) */
.al2-split.has-detail .al2-pc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.7em;
}

/* 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);
  }
}


/* ─── Status Chips (reusable) ─── */
.al2-st-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.al2-st-chip.pending { color: var(--al2-st-pending); background: var(--al2-st-pending-bg); }
.al2-st-chip.active  { color: var(--al2-st-active);  background: var(--al2-st-active-bg); }
.al2-st-chip.caution { color: var(--al2-st-caution); background: var(--al2-st-caution-bg); }
.al2-st-chip.urgent  { color: var(--al2-st-urgent);  background: var(--al2-st-urgent-bg); }
.al2-st-chip.done    { color: var(--al2-st-done);    background: var(--al2-st-done-bg); }
.al2-st-chip.closed  { color: var(--al2-st-closed);  background: var(--al2-st-closed-bg); }


/* ═══════════════════════════════════════════════
   v1.0 (2026-04-30) — AI Disclaimer 공통 컴포넌트
   /shared/js/ai-disclaimer.js + 모든 AI 페이지에서 사용
   ═══════════════════════════════════════════════ */

/* 첫 방문 동의 모달 */
.al2-ai-disc-modal {
  position: fixed; inset: 0;
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.al2-ai-disc-modal.show { opacity: 1; pointer-events: auto; }
.al2-ai-disc-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}
.al2-ai-disc-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 540px;
  margin: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
  transform: translateY(20px);
  transition: transform .22s;
}
.al2-ai-disc-modal.show .al2-ai-disc-content { transform: translateY(0); }

.al2-ai-disc-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--al2-g100);
}
.al2-ai-disc-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.al2-ai-disc-modal.level-strong .al2-ai-disc-icon-wrap {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.al2-ai-disc-modal.level-medium .al2-ai-disc-icon-wrap {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.al2-ai-disc-content h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--al2-g900);
  line-height: 1.3;
}
.al2-ai-disc-content > .al2-ai-disc-head p {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--al2-g600);
  line-height: 1.4;
}
.al2-ai-disc-modal.level-strong .al2-ai-disc-head p { color: #b91c1c; }
.al2-ai-disc-modal.level-medium .al2-ai-disc-head p { color: #b45309; }

.al2-ai-disc-points {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: .84rem;
  color: var(--al2-g700);
  line-height: 1.6;
}
.al2-ai-disc-points li { margin-bottom: 6px; }
.al2-ai-disc-points li b { color: var(--al2-g900); font-weight: 700; }

.al2-ai-disc-meta {
  font-size: .72rem;
  color: var(--al2-g500);
  background: var(--al2-g50);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.al2-ai-disc-meta i { color: var(--al2-brand); margin-right: 4px; }
.al2-ai-disc-meta a { color: var(--al2-brand); text-decoration: underline; }

.al2-ai-disc-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.al2-ai-disc-btn-decline,
.al2-ai-disc-btn-accept {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.al2-ai-disc-btn-decline {
  background: #fff;
  border: 1px solid var(--al2-g200);
  color: var(--al2-g700);
}
.al2-ai-disc-btn-decline:hover {
  border-color: var(--al2-g300);
  background: var(--al2-g50);
}
.al2-ai-disc-btn-accept {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}
.al2-ai-disc-modal.level-strong .al2-ai-disc-btn-accept {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 2px 8px rgba(220, 38, 38, .3);
}
.al2-ai-disc-modal.level-medium .al2-ai-disc-btn-accept {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, .3);
}
.al2-ai-disc-btn-accept:hover { transform: translateY(-1px); }

/* Inline footer (카드 / 섹션 하단) */
.al2-ai-footer {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: .76rem;
  line-height: 1.6;
  border: 1px solid;
}
.al2-ai-footer.level-strong {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}
.al2-ai-footer.level-medium {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}
.al2-ai-footer.level-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.al2-ai-footer.compact { padding: 7px 11px; font-size: .72rem; }
.al2-ai-footer-head {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.al2-ai-footer-icon { font-size: .9rem; }
.al2-ai-footer ul {
  margin: 0; padding-left: 20px;
  font-size: .72rem;
}
.al2-ai-footer ul li { margin-bottom: 2px; }
.al2-ai-footer ul li b { font-weight: 700; }

/* Sticky badge */
.al2-ai-badge {
  position: fixed;
  bottom: 16px; right: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  z-index: 9000;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.al2-ai-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
