/* ======================================================================
   ms.studydev.com — 공통 사이트 스타일
   ===================================================================== */

:root {
    --azure-primary: #0078D4;
    --azure-dark: #004578;
    --azure-light: #DEECF9;
    --azure-accent: #50E6FF;
    --bg-light: #F5F7FA;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 32px rgba(0,120,212,0.18);
    --radius: 16px;
    --sidebar-width: 260px;
    --hosted-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
    --hosted-color: #00838F;
    --m365-color: #D83B01;
    --m365-gradient: linear-gradient(135deg, #EB8317, #D83B01);
    --github-color: #24292E;
    --github-gradient: linear-gradient(135deg, #6e5494, #24292E);
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: #1a1a1a;
    line-height: 1.7;
}

/* ===== NAVBAR ===== */
.top-nav {
    background: linear-gradient(135deg, var(--azure-dark) 0%, var(--azure-primary) 100%);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.top-nav .breadcrumb { margin: 0; background: transparent; padding: 0; }
.top-nav .breadcrumb-item,
.top-nav .breadcrumb-item a { color: rgba(255,255,255,0.85); font-size: 0.85rem; text-decoration: none; }
.top-nav .breadcrumb-item.active { color: #fff; font-weight: 500; }
.top-nav .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); content: "›"; }
.nav-brand {
    color: #fff !important; font-weight: 700; font-size: 1.1rem;
    text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand i { font-size: 1.3rem; }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; top: 56px; left: 0; width: var(--sidebar-width);
    height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e8e8e8;
    overflow-y: auto; padding: 1.5rem 0; z-index: 1000; transition: transform 0.3s;
}
.sidebar .nav-link {
    padding: 0.45rem 1.5rem; color: #555; font-size: 0.85rem;
    border-left: 3px solid transparent; transition: all 0.2s;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: var(--azure-primary); border-left-color: var(--azure-primary);
    background: var(--azure-light); font-weight: 500;
}
.sidebar .nav-heading {
    padding: 0.6rem 1.5rem 0.3rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: #999;
}
.sidebar .back-link {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.5rem;
    color: var(--azure-primary); font-size: 0.82rem; font-weight: 600;
    text-decoration: none; border-bottom: 1px solid #eee; margin-bottom: 0.5rem;
}
.sidebar .back-link:hover { background: var(--azure-light); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.sidebar-toggle {
    display: none; position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 48px; height: 48px; background: var(--azure-primary); color: #fff;
    border: none; border-radius: 50%; font-size: 1.3rem; z-index: 1200;
    box-shadow: 0 4px 16px rgba(0,120,212,0.4); cursor: pointer;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 999; }
.sidebar-overlay.show { display: block; }

/* ===== MAIN CONTENT ===== */
.main-content { padding: 0; min-height: 100vh; }
.has-sidebar .main-content { margin-left: var(--sidebar-width); }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, #001D3D 0%, var(--azure-dark) 40%, var(--azure-primary) 100%);
    color: #fff; padding: 4rem 2rem 3rem; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(80,230,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 { font-weight: 900; font-size: 2.4rem; margin-bottom: 0.8rem; }
.hero-section .lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 700px; }
.hero-meta {
    display: flex; gap: 1.5rem; margin-top: 1.2rem; font-size: 0.85rem;
    color: rgba(255,255,255,0.7); flex-wrap: wrap;
}
.hero-meta i { margin-right: 0.3rem; }
/* Hosted lab hero variant */
.page-lab .hero-section {
    background: linear-gradient(135deg, #001D3D 0%, #003d6b 40%, var(--hosted-color) 100%);
}
.page-lab .hero-section::before {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}
.page-lab .sidebar-toggle { background: var(--hosted-color); box-shadow: 0 4px 16px rgba(0,131,143,0.4); }
/* M365 page variant */
.page-m365 .hero-section {
    background: linear-gradient(135deg, #001D3D 0%, var(--azure-dark) 40%, #D83B01 100%);
}
.page-m365 .hero-section::before {
    background: radial-gradient(circle, rgba(235,131,23,0.12) 0%, transparent 70%);
}
.page-m365 .sidebar-toggle { background: var(--m365-color); box-shadow: 0 4px 16px rgba(216,59,1,0.4); }
.page-m365 .sidebar .nav-link:hover,
.page-m365 .sidebar .nav-link.active {
    color: var(--m365-color); border-left-color: var(--m365-color);
    background: #FFF3E0;
}

/* ===== Studio page variant (e-commerce product studio guide) ===== */
.page-studio .hero-section {
    background: linear-gradient(135deg, #18062b 0%, #4f1d8a 35%, #d6336c 100%);
}
.page-studio .hero-section::before {
    background: radial-gradient(circle, rgba(255,140,180,0.18) 0%, transparent 70%);
}
.page-studio .sidebar-toggle {
    background: #d6336c;
    box-shadow: 0 4px 16px rgba(214,51,108,0.4);
}
.page-studio .sidebar .nav-link:hover,
.page-studio .sidebar .nav-link.active {
    color: #d6336c;
    border-left-color: #d6336c;
    background: #fff0f6;
}
.page-studio .step-card::before { background: linear-gradient(135deg, #4f1d8a, #d6336c); }
.page-studio .step-card .step-number { background: linear-gradient(135deg, #4f1d8a, #d6336c); }
.page-studio .step-card .step-num { background: linear-gradient(135deg, #4f1d8a, #d6336c); }
.page-studio .section-title i { color: #d6336c; }

/* Shot mode 4-card grid (lookbook / front / side / back) */
.shot-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.shot-mode-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--azure-primary);
    border-radius: var(--radius);
    padding: 1.1rem 1.1rem 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.shot-mode-card[data-mode="lookbook"] { border-top-color: #d6336c; }
.shot-mode-card[data-mode="front"]    { border-top-color: #0078D4; }
.shot-mode-card[data-mode="side"]     { border-top-color: #2EA44F; }
.shot-mode-card[data-mode="back"]     { border-top-color: #6E40C9; }
.shot-mode-card .mode-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #f1f3f5;
    color: #495057;
}
.shot-mode-card[data-mode="lookbook"] .mode-tag { background: #ffe0ec; color: #a61b56; }
.shot-mode-card[data-mode="front"]    .mode-tag { background: #e3f2fd; color: #004578; }
.shot-mode-card[data-mode="side"]     .mode-tag { background: #e6f4ea; color: #1a7f37; }
.shot-mode-card[data-mode="back"]     .mode-tag { background: #f0e9fb; color: #4b1d97; }
.shot-mode-card h4 {
    font-weight: 700; font-size: 1.05rem; margin: 0; color: #1a1a1a;
}
.shot-mode-card p {
    font-size: 0.85rem; color: #555; margin: 0;
}
.shot-mode-card ul {
    font-size: 0.82rem; color: #555; padding-left: 1.1rem; margin: 0.2rem 0 0;
}

/* Studio pipeline: input image → analyze → review → generate */
.studio-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.6rem;
}
.studio-pipeline .pipe-step {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.9rem 0.9rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.studio-pipeline .pipe-step .pipe-icon {
    width: 38px; height: 38px;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f1d8a, #d6336c);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.studio-pipeline .pipe-step h6 {
    font-weight: 700; font-size: 0.95rem; margin: 0; color: #1a1a1a;
}
.studio-pipeline .pipe-step p {
    font-size: 0.78rem; color: #6c757d; margin: 0.3rem 0 0;
}
.studio-pipeline .pipe-step + .pipe-step::before {
    content: '\2192';
    position: absolute;
    left: -0.7rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem; color: #adb5bd;
}
@media (max-width: 720px) {
    .studio-pipeline .pipe-step + .pipe-step::before { display: none; }
}

/* Parameter matrix table */
.param-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0 1.5rem;
}
.param-matrix th,
.param-matrix td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}
.param-matrix thead th {
    background: #f8f9fa;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
}
.param-matrix tbody tr:last-child td { border-bottom: none; }
.param-matrix .mode-cell {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    color: #4f1d8a;
    white-space: nowrap;
}

/* Feature observation list */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin: 0.8rem 0 1.4rem;
}
.feature-grid .feature-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 3px solid #d6336c;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}
.feature-grid .feature-item h6 {
    font-weight: 700; font-size: 0.85rem; margin: 0 0 0.2rem; color: #1a1a1a;
}
.feature-grid .feature-item p {
    font-size: 0.78rem; color: #6c757d; margin: 0;
}

/* Result gallery placeholder grid */
.studio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.studio-gallery .gallery-tile {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #868e96;
    font-size: 0.85rem;
}
.studio-gallery .gallery-tile .tile-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #495057;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}
.studio-gallery .gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: block;
}

/* Split layout: left = single input, right = 2x2 result grid */
.studio-gallery.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem;
    align-items: stretch;
}
.studio-gallery.split .gallery-tile {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.studio-gallery.split .gallery-tile-input {
    height: 100%;
}
.studio-gallery.split .gallery-tile-input img {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}
.studio-gallery.split .gallery-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem;
}
.studio-gallery.split .gallery-grid-2x2 .gallery-tile img {
    flex: 1;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}
@media (max-width: 768px) {
    .studio-gallery.split {
        grid-template-columns: 1fr;
    }
    .studio-gallery.split .gallery-tile-input img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
}
@media (max-width: 480px) {
    .studio-gallery.split .gallery-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Bare variant: 이미지 자체에 라벨/캡션이 포함된 경우 박스 장식 제거 */
.studio-gallery.bare .gallery-tile {
    background: transparent;
    border: none;
    padding: 0;
}
.studio-gallery.bare .gallery-tile img {
    border: none;
    border-radius: 12px;
    margin-top: 0;
    background: transparent;
}
.page-m365 .step-card::before { background: var(--m365-gradient); }
.page-m365 .step-card .step-number { background: var(--m365-gradient); }
/* M365 page — unified card colors */
.page-m365 .agent-card .card-icon { background: var(--m365-gradient); }
.page-m365 .agent-card .badge-type { background: var(--azure-light); color: var(--azure-dark); }
.lab-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(0,242,254,0.2); border: 1px solid rgba(0,242,254,0.4);
    padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: #fff;
    margin-top: 1rem;
}

/* ===== HERO SPEECH BUBBLE ===== */
.hero-section .speech-bubble {
    position: relative;
    display: inline-block;
    max-width: 720px;
    margin-top: 1.2rem;
    padding: 1.2rem 1.6rem 1.2rem 3rem;
    background: #fff;
    color: #1a1a1a;
    font-size: 1.05rem;
    line-height: 1.7;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.hero-section .speech-bubble::after {
    content: "";
    position: absolute;
    left: 2.4rem;
    bottom: -14px;
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 16px solid #fff;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.08));
}
.hero-section .speech-bubble-quote {
    position: absolute;
    left: 0.9rem;
    top: 0.8rem;
    font-size: 1.8rem;
    color: var(--m365-color);
    opacity: 0.55;
    line-height: 1;
}
.hero-section .speech-bubble b { color: var(--m365-color); }

/* ===== SECTION ===== */
.content-section { padding: 3rem 2.5rem; }
.content-section:nth-child(even) { background: #fff; }
.section-title {
    font-weight: 800; font-size: 1.7rem; color: var(--azure-dark);
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem;
}
.section-title i { color: var(--azure-primary); font-size: 1.4rem; }
.section-subtitle { color: #666; font-size: 1rem; margin-bottom: 2rem; }

/* ===== CARDS (AGENT / CATEGORY) ===== */
.agent-card, .category-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
    padding: 2rem; height: 100%; transition: all 0.3s ease;
    border: 1px solid #eee; position: relative; overflow: hidden;
    text-decoration: none; color: inherit; display: block;
}
.agent-card:hover, .category-card:hover {
    transform: translateY(-6px); box-shadow: var(--card-hover-shadow);
}
.agent-card .card-icon, .category-card .card-icon {
    width: 64px; height: 64px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.2rem; color: #fff;
}
.agent-card.prompt .card-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.agent-card.workflow .card-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.agent-card.hosted .card-icon { background: var(--hosted-gradient); }
.category-card.azure .card-icon { background: linear-gradient(135deg, var(--azure-primary), var(--azure-dark)); }
.category-card.m365 .card-icon { background: var(--m365-gradient); }
.category-card.github .card-icon { background: var(--github-gradient); }

.agent-card h3, .category-card h3 { font-weight: 700; font-size: 1.3rem; margin-bottom: 0.3rem; }
.agent-card .badge-type {
    display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; margin-bottom: 1rem;
}
.agent-card.prompt .badge-type { background: #EDE7F6; color: #5E35B1; }
.agent-card.workflow .badge-type { background: #FCE4EC; color: #C2185B; }
.agent-card.hosted .badge-type { background: #E0F7FA; color: #00838F; }
.agent-card .card-desc, .category-card .card-desc {
    color: #555; font-size: 0.9rem; margin-bottom: 1.2rem;
}
.pros-cons { margin-bottom: 1rem; }
.pros-cons dt { font-size: 0.78rem; font-weight: 700; color: var(--azure-primary); margin-bottom: 0.2rem; }
.pros-cons dd {
    font-size: 0.82rem; color: #555; margin-bottom: 0.6rem;
    padding-left: 0.8rem; border-left: 2px solid var(--azure-light);
}
.use-case-list { list-style: none; padding: 0; margin: 0; }
.use-case-list li { font-size: 0.82rem; padding: 0.25rem 0; color: #444; }
.use-case-list li::before { content: "✓"; color: #28a745; font-weight: 700; margin-right: 0.4rem; }

/* Category doc list in main landing */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
    padding: 0.45rem 0; font-size: 0.86rem;
    border-bottom: 1px dashed #eee;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a {
    color: var(--azure-primary); text-decoration: none; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.doc-list a:hover { text-decoration: underline; }
.doc-list .doc-desc { display: block; color: #888; font-size: 0.76rem; font-weight: 400; margin-top: 0.1rem; }
.doc-list .empty { color: #aaa; font-style: italic; font-size: 0.82rem; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.comparison-table thead th {
    background: var(--azure-primary); color: #fff; font-weight: 600;
    font-size: 0.88rem; padding: 1rem; border: none; text-align: center; vertical-align: middle;
}
.comparison-table thead th:first-child { text-align: left; background: var(--azure-dark); }
.comparison-table tbody td {
    padding: 0.85rem 1rem; font-size: 0.85rem; text-align: center;
    vertical-align: middle; border-bottom: 1px solid #f0f0f0;
}
.comparison-table tbody td:first-child {
    text-align: left; font-weight: 600; color: #333; background: #FAFBFD;
}
.comparison-table tbody tr:hover { background: var(--azure-light); }
.table-check { color: #28a745; font-weight: 700; }
.table-cross { color: #dc3545; }

/* ===== DECISION GUIDE ===== */
.decision-flow { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 2rem; }
.decision-node {
    background: var(--azure-light); border: 2px solid var(--azure-primary);
    border-radius: 12px; padding: 1.2rem 1.5rem; text-align: center;
    font-weight: 600; font-size: 0.9rem; position: relative;
}
.decision-node.question {
    background: var(--azure-primary); color: #fff; border-radius: 50%;
    width: 100px; height: 100px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 0.78rem;
}
.decision-arrow { text-align: center; padding: 0.6rem 0; color: var(--azure-primary); font-size: 1.5rem; }
.decision-label { font-size: 0.75rem; color: #888; font-weight: 500; }
.recommend-card {
    background: linear-gradient(135deg, var(--azure-light), #fff);
    border: 2px solid var(--azure-primary); border-radius: 12px;
    padding: 1rem 1.2rem; text-align: center;
}
.recommend-card h5 { color: var(--azure-primary); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.recommend-card p { font-size: 0.8rem; color: #555; margin: 0; }

/* ===== ACCORDION ===== */
.detail-accordion .accordion-button {
    font-weight: 700; font-size: 1.05rem; color: var(--azure-dark);
    background: #fff; border: none; box-shadow: none;
}
.detail-accordion .accordion-button:not(.collapsed) { background: var(--azure-light); color: var(--azure-primary); }
.detail-accordion .accordion-body { font-size: 0.9rem; line-height: 1.8; }
.detail-accordion .accordion-item { border: 1px solid #e8e8e8; border-radius: 12px !important; margin-bottom: 0.8rem; overflow: hidden; }

/* ===== DETAILS ACCORDION (native <details>) ===== */
details.detail-accordion { border: 1px solid #e0e4ea; border-radius: 12px; margin-bottom: 0.8rem; overflow: hidden; }
details.detail-accordion > summary { padding: 0.8rem 1.2rem; font-weight: 700; font-size: 1rem; cursor: pointer; background: #fff; list-style: none; }
details.detail-accordion > summary::-webkit-details-marker { display: none; }
details.detail-accordion > summary::before { content: "▸"; margin-right: 0.5rem; color: var(--azure-primary, #0078d4); transition: transform 0.2s; display: inline-block; }
details.detail-accordion[open] > summary::before { transform: rotate(90deg); }
details.detail-accordion[open] > summary { background: var(--azure-light, #f0f6ff); color: var(--azure-primary, #0078d4); }
details.detail-accordion > *:not(summary) { padding: 0 1.2rem 1rem; }

/* ===== STEP CARDS (lab) ===== */
.step-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
    padding: 2rem; margin-bottom: 2rem; border: 1px solid #eee;
    position: relative; overflow: hidden;
}
.step-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--hosted-gradient);
}
.step-card .step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--hosted-gradient); color: #fff; font-weight: 800; font-size: 1.1rem;
    margin-bottom: 1rem;
}
.step-card .step-header {
    display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.step-card .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
    background: var(--hosted-gradient); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.page-m365 .step-card .step-num { background: var(--m365-gradient); }
.step-card .step-header h4 { font-weight: 700; font-size: 1.2rem; color: #1a1a1a; margin: 0; }
.step-card h3 { font-weight: 700; font-size: 1.3rem; color: #1a1a1a; margin-bottom: 0.8rem; }
.step-card p { font-size: 0.9rem; color: #555; }

/* ===== IMAGE LIGHTBOX (클릭 확대 뷰어) ===== */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    display: none; align-items: center; justify-content: center;
    padding: 2rem; cursor: zoom-out;
}
.lightbox-overlay.show { display: flex; animation: lb-fade 0.18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: 95vw; max-height: 88vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.lightbox-caption {
    position: absolute; bottom: 1rem; left: 50%;
    transform: translateX(-50%); max-width: 90vw;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem; text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.35rem 0.9rem; border-radius: 20px;
    pointer-events: none;
}
.lightbox-caption:empty { display: none; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem;
    cursor: pointer; transition: background 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== IMAGE COMPARE (create_images 전용 컴포넌트) ===== */
.compare-grid {
    display: grid; grid-template-columns: 2fr 3fr; gap: 1.2rem;
    margin: 1rem 0 1.2rem;
}
@media (max-width: 768px) {
    .compare-grid { grid-template-columns: 1fr; }
}
.compare-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column;
}
.compare-card .compare-label {
    display: flex; align-items: center; gap: 0.5rem; justify-content: space-between;
    padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 700;
    background: #f5f5f7; color: #555; border-bottom: 1px solid #eee;
}
.compare-card .compare-label .tag {
    font-size: 0.72rem; padding: 0.15rem 0.55rem; border-radius: 20px;
    font-weight: 700; letter-spacing: 0.02em;
}
.compare-card.before .compare-label .tag { background: #E9ECEF; color: #555; }
.compare-card.after  .compare-label { background: #FFF3E0; color: #D83B01; border-bottom-color: #FFE0B2; }
.compare-card.after  .compare-label .tag { background: var(--m365-color); color: #fff; }
.compare-card img { width: 100%; height: auto; display: block; background: #fafafa; }

.customer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem; margin: 1rem 0 1.5rem;
}
.customer-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    overflow: hidden; box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.customer-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.customer-card img { width: 100%; height: auto; display: block; background: #fafafa; }
.customer-card .caption {
    padding: 0.7rem 1rem; font-size: 0.82rem; color: #555;
    border-top: 1px solid #eee; background: #fcfcfc;
}
.customer-card .caption strong { color: #1a1a1a; }

/* gpt-image-2 일반 모델 배지 */
.model-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 20px; letter-spacing: 0.02em;
    vertical-align: middle;
}
.model-badge.v15 { background: #E9ECEF; color: #555; }
.model-badge.v2  { background: var(--m365-color); color: #fff; }

/* diff-table: 모델 비교 표 */
.diff-table { width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); }
.diff-table th, .diff-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem; vertical-align: top; }
.diff-table thead th { background: #f5f5f7; color: #333; font-weight: 700; }
.diff-table tbody th { text-align: left; background: #fafafa; color: #555; font-weight: 600; width: 22%; }
.diff-table tr:last-child td, .diff-table tr:last-child th { border-bottom: none; }

/* tip-card: 프롬프트 팁 */
.tip-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem; margin: 1.2rem 0;
}
.tip-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 1.1rem 1.2rem; box-shadow: var(--card-shadow);
    border-left: 4px solid var(--m365-color);
}
.tip-card h5 { font-weight: 700; font-size: 1rem; color: var(--m365-color); margin-bottom: 0.4rem; }
.tip-card h5 i { margin-right: 0.4rem; }
.tip-card p { font-size: 0.85rem; color: #555; margin: 0; }

/* ===== INLINE CODE (줄바꿈 방지) =====
   본문(callout, 단락, 표, 리스트 등)에 박힌 짧은 `<code>` 토큰이
   단어 경계에서 잘려 여러 줄로 흩어지는 것을 방지한다.
   `.code-block` / `pre` 내부의 멀티라인 코드는 영향받지 않는다. */
:not(pre) > code {
    white-space: nowrap;
    word-break: keep-all;
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: #1e1e1e; color: #d4d4d4; border-radius: 10px;
    padding: 0.3rem 1.5rem; font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem; overflow-x: auto; margin: 1rem 0; position: relative;
    border: 1px solid #333;
    white-space: pre; line-height: 1.7; tab-size: 4;
}
.code-block .keyword { color: #569CD6; }
.code-block .string { color: #CE9178; }
.code-block .comment { color: #6A9955; }
.code-block .func { color: #DCDCAA; }
.code-block .cmd { color: #4EC9B0; }
.code-block .flag { color: #9CDCFE; }
.code-block .prompt { color: #6A9955; user-select: none; }

.code-label {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: #2d2d2d; color: #888; font-size: 0.7rem; font-weight: 600;
    padding: 0.35rem 0.8rem; border-radius: 8px 8px 0 0; margin-bottom: 0;
    font-family: 'Fira Code', monospace; text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid #333; border-bottom: none;
    position: relative; top: 1px; z-index: 1;
}
.code-label.bash { color: #4EC9B0; }
.code-label.python { color: #569CD6; }
.code-label.yaml { color: #CE9178; }
.code-label.http { color: #DCDCAA; }
.code-label.json { color: #9CDCFE; }
.code-label + .code-block { margin-top: 0; border-top-left-radius: 0; }

.copy-btn {
    position: absolute; top: 0.6rem; right: 0.6rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: #999; padding: 0.25rem 0.6rem; border-radius: 6px;
    font-size: 0.7rem; cursor: pointer; transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif; white-space: normal; line-height: 1.2;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.copy-btn.copied { color: #4EC9B0; border-color: #4EC9B0; }

/* ===== CALLOUTS ===== */
.callout { border-radius: 12px; padding: 1.2rem 1.5rem; margin: 1rem 0; font-size: 0.88rem; line-height: 1.7; }
.callout-info { background: linear-gradient(135deg, var(--azure-light), #E3F2FD); border-left: 4px solid var(--azure-primary); }
.callout-warning { background: #FFF8E1; border-left: 4px solid #FFA000; }
.callout-danger { background: #FFEBEE; border-left: 4px solid #D32F2F; }
.callout-success { background: #E8F5E9; border-left: 4px solid #2E7D32; }
.callout-tip { background: #F3E5F5; border-left: 4px solid #7B1FA2; }
.callout > strong:first-child { display: block; margin-bottom: 0.3rem; }
.callout-info p { position: relative; }
.callout-info p .callout-copy-btn {
    position: absolute; top: 0; right: 0;
    background: rgba(255,255,255,0.75); border: 1px solid #c0d8ef;
    border-radius: 4px; padding: 0.15rem 0.45rem;
    font-size: 0.68rem; color: #555; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.25rem;
    transition: background 0.2s, color 0.2s;
}
.callout-info p .callout-copy-btn:hover { background: #d6e8f7; color: #333; }
.callout-info p .callout-copy-btn.copied { background: #d4edda; color: #155724; border-color: #a3d9b1; }

/* row(콜아웃 그리드) 바로 다음에 오는 단독 콜아웃의 상단 여백 보정 */
.row + .callout { margin-top: 1.5rem; }

/* ===== PREREQ CARDS ===== */
.prereq-card {
    background: #fff; border-radius: 12px; padding: 1.2rem;
    border: 1px solid #e8e8e8; text-align: center; transition: all 0.2s;
}
.prereq-card ul, .prereq-card ol { text-align: left; }
.prereq-card:hover { border-color: var(--azure-primary); box-shadow: 0 4px 16px rgba(0,120,212,0.1); }
.prereq-card i { font-size: 2rem; color: var(--azure-primary); }
.prereq-card h6 { font-weight: 700; margin-top: 0.5rem; font-size: 1.15rem; display: flex; align-items: center; gap: 0.4rem; }
.prereq-card h6 i { font-size: 1.25rem; color: inherit; }
.prereq-card p { font-size: 0.78rem; color: #888; margin: 0; }
.prereq-card a { font-size: 0.75rem; }

/* ===== APP ICONS (M365 / Microsoft 공식 SVG) ===== */
.app-icon { width: 2rem; height: 2rem; display: block; margin: 0 auto; }
.prereq-card .app-icon { margin-bottom: 0.2rem; }
.flow-node .app-icon { width: 1.6rem; height: 1.6rem; margin: 0 auto 0.3rem; }
.app-icon-inline { width: 1.1rem; height: 1.1rem; vertical-align: -0.2rem; margin-right: 0.2rem; }

/* ===== TIMELINE (content) ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: calc(0.4rem + 5px); top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--azure-primary), var(--hosted-color));
}
.timeline-item { position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.6rem; top: 0.4rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--azure-primary); border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--azure-light);
}
.timeline-item .tl-title { font-weight: 700; font-size: 0.92rem; color: #333; }
.timeline-item .tl-desc { font-size: 0.82rem; color: #666; }

/* ===== RESOURCE / TROUBLESHOOT TABLES ===== */
.resource-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.resource-table thead th {
    background: var(--azure-primary); color: #fff; font-weight: 600;
    font-size: 0.85rem; padding: 0.8rem 1rem; border: none;
}
.resource-table tbody td { padding: 0.7rem 1rem; font-size: 0.83rem; border-bottom: 1px solid #f0f0f0; }
.resource-table tbody tr:hover { background: var(--azure-light); }
.troubleshoot-table thead th { background: #FFF3E0; color: #E65100; font-size: 0.85rem; font-weight: 600; }
.troubleshoot-table tbody td { font-size: 0.83rem; }

/* ===== DIAGRAM ===== */
.diagram-container {
    background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
    padding: 2rem; text-align: center; margin: 1.5rem 0;
}
.diagram-container img { max-width: 100%; height: auto; border-radius: 8px; }
.diagram-container .diagram-caption,
.diagram-caption { margin-top: 1rem; font-size: 0.82rem; color: #888; }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; padding: 1.5rem 0; }
.flow-node {
    background: #fff; border: 2px solid var(--azure-primary); border-radius: 12px;
    padding: 0.8rem 1.2rem; text-align: center; min-width: 120px;
    font-size: 0.82rem; font-weight: 600; color: var(--azure-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.flow-node.active { background: var(--azure-primary); color: #fff; border-color: var(--azure-primary); }
.flow-node i { display: block; font-size: 1.3rem; margin-bottom: 0.3rem; }
.flow-arrow { color: var(--azure-primary); font-size: 1.5rem; flex-shrink: 0; }

/* ===== REF LINKS ===== */
.ref-link-card {
    background: #fff; border-radius: 12px; padding: 1rem 1.3rem;
    border: 1px solid #e8e8e8; transition: all 0.2s; text-decoration: none; color: inherit;
    display: flex; align-items: flex-start; gap: 0.8rem;
}
.ref-link-card:hover { border-color: var(--azure-primary); box-shadow: 0 4px 16px rgba(0,120,212,0.1); transform: translateY(-2px); }
.ref-link-card i { color: var(--azure-primary); font-size: 1.3rem; flex-shrink: 0; margin-top: 0.15rem; }
.ref-link-card h6 { font-weight: 600; color: var(--azure-primary); margin-bottom: 0.2rem; font-size: 0.9rem; }
.ref-link-card p { font-size: 0.78rem; color: #888; margin: 0; }

/* ===== FILE TREE ===== */
.file-tree {
    background: #1e1e1e; border-radius: 10px; padding: 1.2rem 1.5rem;
    font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #d4d4d4;
    margin: 1rem 0; line-height: 1.7;
}
.file-tree .folder { color: #E8AB53; }
.file-tree .file { color: #9CDCFE; }
.file-tree .indent { padding-left: 1.2rem; }
.file-tree .highlight { color: #4EC9B0; font-weight: 600; }

/* ===== EXPECTED OUTPUT ===== */
.expected-output {
    background: #0d2137; color: #4EC9B0; border-radius: 10px;
    padding: 1rem 1.5rem; font-family: 'Fira Code', monospace; font-size: 0.8rem;
    margin: 0.5rem 0; border: 1px solid #1a3a5c;
    white-space: pre-wrap; line-height: 1.6; overflow-x: auto;
}
.expected-output .label { color: #6A9955; font-size: 0.7rem; margin-bottom: 0.3rem; display: block; }

/* ===== SIDEBAR STEP TIMELINE ===== */
.step-timeline {
    list-style: none; padding: 0.5rem 1.5rem; margin: 0; position: relative;
}
.step-timeline::before {
    content: ''; position: absolute; left: calc(1.5rem + 13px); top: 0.9rem; bottom: 0.9rem;
    width: 2px; background: #e5e7eb; border-radius: 2px;
}
.step-timeline::after {
    content: ''; position: absolute; left: calc(1.5rem + 13px); top: 0.9rem;
    width: 2px; height: var(--tl-progress, 0px);
    background: linear-gradient(to bottom, #2E7D32, var(--azure-primary));
    border-radius: 2px; transition: height 0.35s ease;
}
.step-tl-item { position: relative; padding: 0; margin: 0; }
.step-tl-link {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.55rem 0; text-decoration: none; color: inherit; position: relative;
}
.step-tl-circle {
    width: 28px; height: 28px; border-radius: 50%; background: #fff;
    border: 2px solid #d1d5db; color: #9ca3af;
    font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; z-index: 1; transition: all 0.25s ease;
}
.step-tl-body { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.15rem; }
.step-tl-label { font-size: 0.85rem; font-weight: 600; color: #555; transition: color 0.2s ease; }
.step-tl-desc { font-size: 0.7rem; color: #9ca3af; font-family: 'Fira Code', monospace; }
.step-tl-link:hover .step-tl-circle { border-color: var(--azure-primary); color: var(--azure-primary); }
.step-tl-link:hover .step-tl-label { color: var(--azure-primary); }
.step-tl-item.done .step-tl-circle {
    background: #2E7D32; border-color: #2E7D32; color: #fff; font-size: 0;
}
.step-tl-item.done .step-tl-circle::before {
    content: '\F26E'; font-family: 'bootstrap-icons'; font-size: 0.85rem;
}
.step-tl-item.done .step-tl-label { color: #2E7D32; }
.step-tl-item.done .step-tl-desc { color: #6b7280; }
.step-tl-item.active .step-tl-circle {
    background: var(--azure-primary); border-color: var(--azure-primary); color: #fff;
    box-shadow: 0 0 0 4px rgba(0,120,212,0.18); transform: scale(1.08);
}
.step-tl-item.active .step-tl-label { color: var(--azure-primary); font-weight: 700; }
.step-tl-item.active .step-tl-desc { color: var(--azure-primary); opacity: 0.75; }

/* ===== RESPONSIVE IMAGE ===== */
.hero-comic-img {
    width: 100%;
    max-width: 1024px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

/* ===== MISC ===== */
.badge-preview {
    background: #FFF3E0; color: #E65100; font-size: 0.65rem; font-weight: 600;
    padding: 0.15rem 0.5rem; border-radius: 4px; vertical-align: middle; margin-left: 0.4rem;
}
.highlight-box {
    background: linear-gradient(135deg, var(--azure-light), #E3F2FD);
    border-left: 4px solid var(--azure-primary);
    border-radius: 0 12px 12px 0; padding: 1.2rem 1.5rem; margin: 1rem 0;
}
.highlight-box p { margin: 0; font-size: 0.88rem; }
.pattern-badge {
    display: inline-block; background: var(--azure-light); color: var(--azure-primary);
    padding: 0.3rem 0.8rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600; margin: 0.2rem;
}
.framework-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: #f0f0f0; padding: 0.3rem 0.8rem; border-radius: 8px;
    font-size: 0.78rem; font-weight: 500;
}
.img-screenshot {
    max-width: 100%; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); margin: 1rem 0;
}
.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li {
    counter-increment: steps; padding: 0.6rem 0 0.6rem 3rem;
    position: relative; font-size: 0.88rem;
}
.step-list li::before {
    content: counter(steps); position: absolute; left: 0; top: 0.5rem;
    width: 28px; height: 28px; background: var(--azure-primary); color: #fff;
    border-radius: 50%; text-align: center; line-height: 28px;
    font-size: 0.78rem; font-weight: 700;
}

/* ===== FOOTER ===== */
.page-footer {
    background: var(--azure-dark); color: rgba(255,255,255,0.7);
    padding: 2rem 2.5rem; font-size: 0.8rem;
}
.page-footer a { color: var(--azure-accent); text-decoration: none; }

/* ===== DATA PIPELINE (User → Copilot → Graph + 외부 도구) ===== */
.data-pipeline { margin: 1.5rem 0 0.5rem; }

/* Top row: 사용자(가운데) · Entra ID(오른쪽 코너, 인증 용도) */
.pipeline-top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.pipeline-top-row .pipeline-user { grid-column: 2; justify-self: center; }
.pipeline-top-row .pipeline-entra { grid-column: 3; justify-self: end; }
.pipeline-user, .pipeline-entra {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1rem; border-radius: 10px;
    font-size: 0.86rem; line-height: 1.25;
}
.pipeline-user {
    background: #fff; border: 2px solid var(--azure-primary); color: var(--azure-dark);
}
.pipeline-user .pipeline-icon {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--azure-light); color: var(--azure-primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.pipeline-user .pipeline-title { font-weight: 700; }
.pipeline-user .pipeline-sub { font-size: 0.76rem; color: #666; }
.pipeline-entra {
    background: #fff7ed; border: 1.5px dashed #f59e0b; color: #92400e;
}
.pipeline-entra .pipeline-icon {
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    background: #fff; color: #92400e;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; overflow: hidden;
}
.pipeline-entra .pipeline-icon img { width: 1.3rem; height: 1.3rem; }
.pipeline-entra .pipeline-title { font-weight: 700; font-size: 0.85rem; }
.pipeline-entra .pipeline-sub { font-size: 0.74rem; color: #b45309; }

/* M365 Copilot agent box (Azure 그라디언트) */
.pipeline-agent {
    max-width: 520px; margin: 0 auto; padding: 1rem 1.4rem;
    background: linear-gradient(135deg, var(--azure-dark) 0%, var(--azure-primary) 100%);
    color: #fff; border-radius: 14px; text-align: center;
    box-shadow: 0 6px 20px rgba(0,120,212,0.25);
    display: flex; align-items: center; justify-content: center; gap: 0.9rem;
}
.pipeline-agent .pipeline-icon {
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.pipeline-agent .pipeline-icon img.app-icon {
    width: 1.7rem; height: 1.7rem; margin: 0;
    background: #fff; border-radius: 50%; padding: 0.18rem;
}
.pipeline-agent .pipeline-text { text-align: left; }
.pipeline-agent .pipeline-title { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.pipeline-agent .pipeline-sub { font-size: 0.78rem; opacity: 0.85; margin-top: 0.15rem; }

/* Copilot 박스 안의 sub-agent pills */
.pipeline-agent-subs {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem;
}
.pipeline-agent-subs .sub-agent {
    background: rgba(255,255,255,0.18); color: #fff;
    border-radius: 999px; padding: 0.18rem 0.6rem;
    font-size: 0.74rem; font-weight: 500;
}

/* Copilot row: agent 중앙 + LLM 우측 (Entra ID와 동일 패턴) */
.pipeline-copilot-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 1rem;
}
.pipeline-copilot-row .pipeline-agent { grid-column: 2; justify-self: center; margin: 0; }
.pipeline-copilot-row .pipeline-llms-wrap { grid-column: 3; justify-self: start; }
.pipeline-llms-wrap {
    display: flex; align-items: center; gap: 0.5rem;
}
.pipeline-copilot-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--azure-primary);
}
.pipeline-copilot-arrow .arrow-stack {
    display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
}
.pipeline-copilot-arrow .arrow-stack .label {
    font-size: 0.7rem; color: #666; font-weight: 600;
}
.pipeline-copilot-arrow .arrow-stack i { font-size: 1.4rem; opacity: 0.85; }
.pipeline-llms {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 0.6rem 0.9rem; border-radius: 12px;
    background: #fff; border: 1.5px solid #e5e7eb;
    align-self: center; min-width: 160px;
}
.pipeline-llms-label {
    font-size: 0.72rem; color: #666; text-transform: uppercase;
    letter-spacing: 0.04em; font-weight: 600;
}
.pipeline-llm-item {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.85rem; font-weight: 600; color: #1f2937;
}
.pipeline-llm-item img { width: 1.3rem; height: 1.3rem; }

/* Microsoft Graph layer (사내 콘텐츠 채널 헤더) */
.pipeline-graph {
    padding: 0.7rem 1.2rem;
    background: #fff;
    border: 2px solid var(--azure-primary);
    border-radius: 12px; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    box-shadow: 0 2px 10px rgba(0,120,212,0.08);
}
.pipeline-graph .pipeline-icon {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--azure-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--azure-primary); font-size: 1rem; flex-shrink: 0;
}
.pipeline-graph .pipeline-title { font-weight: 700; color: var(--azure-dark); font-size: 0.92rem; }
.pipeline-graph .pipeline-sub { font-size: 0.78rem; color: #666; margin-left: 0.3rem; }

/* 외부 도구 박스 (보라 색상) */
.pipeline-tools {
    margin: 0; padding: 0.7rem 1.2rem;
    background: #fff;
    border: 2px solid #8b5cf6;
    border-radius: 12px; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    box-shadow: 0 2px 10px rgba(139,92,246,0.10);
}
.pipeline-tools .pipeline-icon {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: #ede9fe; color: #7c3aed;
    display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.pipeline-tools .pipeline-title { font-weight: 700; color: #5b21b6; font-size: 0.92rem; }
.pipeline-tools .pipeline-sub { font-size: 0.78rem; color: #666; margin-left: 0.3rem; }

/* 화살표 행 */
.pipeline-arrows {
    display: flex; justify-content: center; align-items: center;
    gap: 1.2rem; padding: 0.4rem 0;
    color: var(--azure-primary);
}
.pipeline-arrows.spread { gap: 2.4rem; }
.pipeline-arrows i { font-size: 1.3rem; opacity: 0.8; }
/* 분기 안 화살표를 source-group-grid 열에 맞춰 정렬 */
.pipeline-branch .pipeline-arrows.spread {
    display: grid; justify-items: center; gap: 0.7rem;
}
.pipeline-branch.branch-internal .pipeline-arrows.spread {
    grid-template-columns: 2fr 1fr 1fr;
}
.pipeline-branch.branch-external .pipeline-arrows.spread {
    grid-template-columns: 1fr 1fr;
}

/* 두 갈래 분기: 사내(4) vs 외부(2) — 비율 2:1 */
.pipeline-branches {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 1.2rem; margin-top: 0.2rem;
}
.pipeline-branch { display: flex; flex-direction: column; }
.pipeline-branch-label {
    text-align: center; font-size: 0.78rem; color: #666;
    margin-bottom: 0.3rem; font-weight: 500;
}
.pipeline-branch .pipeline-arrows { padding: 0.2rem 0; }
.pipeline-branch:first-child .pipeline-arrows i { color: var(--azure-primary); }
.pipeline-branch.branch-external .pipeline-arrows i { color: #8b5cf6; }
.pipeline-branch .source-group { margin-bottom: 0.6rem; }

/* 사내 콘텐츠: SP/OD(2) Outlook(1) Teams(1) / 외부: Bing(1) Plugin(1) */
.source-group-grid { display: grid; gap: 0.7rem; }
.pipeline-branch.branch-internal .source-group-grid {
    grid-template-columns: 2fr 1fr 1fr;
}
.pipeline-branch.branch-external .source-group-grid {
    grid-template-columns: 1fr 1fr;
}

/* 2-LAYER SOURCE GROUP (서비스 → 콘텐츠) */
.source-group {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 0.85rem 0.95rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.source-group:hover {
    border-color: var(--azure-primary);
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.08);
}
.source-group-header {
    display: flex; align-items: center;
    gap: 0.5rem 0.9rem; flex-wrap: wrap;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 0.65rem;
}
.source-group-service {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 700; font-size: 0.88rem; color: #1f2937;
}
.source-group-service img { width: 1.4rem; height: 1.4rem; }
.source-items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.source-item {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: #f3f4f6; border-radius: 999px;
    padding: 0.22rem 0.65rem 0.22rem 0.4rem;
    font-size: 0.78rem; color: #374151; line-height: 1.2;
}
.source-item img { width: 1rem; height: 1rem; }

/* flow-node에서 cowork 이미지 살짝 크게 */
.flow-node .app-icon.icon-cowork { width: 1.8rem; height: 1.8rem; }
/* flow-node 안 아이콘 가로 정렬 */
.app-icon-row {
    display: inline-flex; align-items: center; gap: 0.3rem;
    justify-content: center; flex-wrap: nowrap;
}

/* 섹션 타이틀 안의 아이콘 (copilot.svg 등) — 폰트 크기에 비례 */
.section-title img.bi {
    width: 1.4em; height: 1.4em;
    vertical-align: -0.25em; margin-right: 0.3rem;
}
/* step-header 안의 인라인 아이콘 키우기 */
.step-header h4 .app-icon-inline {
    width: 1.5rem; height: 1.5rem;
    vertical-align: -0.3rem;
}

/* Researcher 캐러셀 */
.researcher-carousel {
    width: 100%; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--card-shadow);
    margin: 1rem 0; background: #fff;
}
.researcher-carousel .carousel-inner {
    border: 1px solid #004578;
    border-radius: var(--radius);
}
.researcher-carousel .carousel-item {
    background: #fff; position: relative;
}
.researcher-carousel .carousel-item img {
    max-width: 100%; width: auto; height: auto;
    display: block; margin: 0 auto;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
}
.researcher-carousel .carousel-caption {
    position: absolute; left: 0; right: 0; top: 0; bottom: auto;
    background: var(--azure-dark); color: #fff;
    padding: 0.6rem 1rem; font-size: 0.85rem;
    border-radius: 0; text-align: left;
    z-index: 10;
}
.researcher-carousel .step-pill {
    display: inline-block; background: var(--azure-primary);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 0.15rem 0.55rem; border-radius: 999px;
    margin-right: 0.4rem; vertical-align: middle;
}
.researcher-carousel .carousel-control-prev-icon,
.researcher-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%; padding: 1.2rem;
    background-size: 50% 50%;
}
.researcher-carousel .carousel-indicators [data-bs-target] {
    background-color: #999;
}
.researcher-carousel .carousel-indicators .active {
    background-color: #555;
}

/* Pre copy button */
pre { position: relative; }
pre .pre-copy-btn {
    position: absolute; top: 0.4rem; right: 0.4rem;
    background: rgba(255,255,255,0.85); border: 1px solid #ddd;
    border-radius: 4px; padding: 0.2rem 0.5rem;
    font-size: 0.72rem; color: #555; cursor: pointer;
    display: flex; align-items: center; gap: 0.25rem;
    transition: background 0.2s, color 0.2s;
}
pre .pre-copy-btn:hover { background: #eee; color: #333; }
pre .pre-copy-btn.copied { background: #d4edda; color: #155724; border-color: #a3d9b1; }

/* Step 2 prompt example */
.prompt-example {
    margin: 0.5rem 0; padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
    font-family: inherit; font-size: 0.85rem; color: #333;
    white-space: pre-wrap; word-break: break-word;
}

@media (max-width: 992px) {
    .pipeline-branch.branch-internal .source-group-grid { grid-template-columns: 1fr; }
    .pipeline-branch.branch-external .source-group-grid { grid-template-columns: 1fr; }
    .pipeline-branch .pipeline-arrows.spread { display: flex; justify-content: center; gap: 1rem; }
}
@media (max-width: 768px) {
    .pipeline-branches { grid-template-columns: 1fr; }
    .pipeline-copilot-row { grid-template-columns: 1fr; justify-items: center; }
    .pipeline-copilot-row .pipeline-agent { grid-column: 1; }
    .pipeline-copilot-row .pipeline-llms-wrap { grid-column: 1; justify-self: center; }
    .pipeline-agent { flex-direction: column; gap: 0.5rem; }
    .pipeline-agent .pipeline-text { text-align: center; }
}

/* =====================================================================
   PAGE-GITHUB 변형 — github 카테고리 문서 전용 색상 테마
   ===================================================================== */
.page-github .hero-section {
    background: linear-gradient(135deg, #001D3D 0%, #1a1f2e 40%, var(--github-color) 100%);
}
.page-github .hero-section::before {
    background: radial-gradient(circle, rgba(110,84,148,0.18) 0%, transparent 70%);
}
.page-github .sidebar-toggle {
    background: var(--github-color);
    box-shadow: 0 4px 16px rgba(36,41,46,0.4);
}
.page-github .sidebar .nav-link:hover,
.page-github .sidebar .nav-link.active {
    color: var(--github-color); border-left-color: var(--github-color);
    background: #f6f8fa;
}
.page-github .sidebar .back-link { color: var(--github-color); }
.page-github .sidebar .back-link:hover { background: #f6f8fa; }
.page-github .step-card::before { background: var(--github-gradient); }
.page-github .step-card .step-number,
.page-github .step-card .step-num { background: var(--github-gradient); }
.page-github .section-title { color: #1a1f2e; }
.page-github .section-title i { color: var(--github-color); }
.page-github .lab-badge {
    background: rgba(110,84,148,0.25);
    border-color: rgba(110,84,148,0.5);
}

/* =====================================================================
   AGENTIC SDLC — 7단계 순환 다이어그램 (SVG + HTML 카드)
   ===================================================================== */
.agentic-cycle {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem 1rem 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.agentic-cycle-svg {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
}

/* 사이클 배경 링 */
.agentic-cycle-svg .cycle-ring-outer {
    fill: none;
    stroke: var(--azure-primary);
    stroke-width: 2.5;
    stroke-dasharray: 10 6;
    opacity: 0.45;
}
.agentic-cycle-svg .cycle-ring-inner {
    fill: none;
    stroke: #DEECF9;
    stroke-width: 2;
}

/* 중앙 허브 */
.agentic-cycle-svg .center-hub-rect {
    fill: url(#hubGrad);
    stroke: rgba(255,255,255,0.5);
    stroke-width: 1;
}
.agentic-cycle-svg .center-hub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 18px;
    fill: #fff;
    text-anchor: middle;
}
.agentic-cycle-svg .center-hub-sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    fill: rgba(255,255,255,0.85);
    text-anchor: middle;
}

/* 페이즈 노드 (사각형 + 텍스트) */
.agentic-cycle-svg .phase-node { cursor: pointer; }
.agentic-cycle-svg .phase-rect {
    fill: #fff;
    stroke-width: 2.5;
    transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}
.agentic-cycle-svg .phase-node:hover .phase-rect,
.agentic-cycle-svg .phase-node.is-hovered .phase-rect {
    fill: #f8fafc;
    stroke-width: 3.5;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}
.agentic-cycle-svg .phase-num-circle { stroke: #fff; stroke-width: 2; }
.agentic-cycle-svg .phase-num {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 13px;
    fill: #fff;
    text-anchor: middle;
}
.agentic-cycle-svg .phase-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-anchor: middle;
}
.agentic-cycle-svg .phase-sub {
    font-family: 'Fira Code', monospace;
    font-size: 10.5px;
    fill: #6b7280;
    text-anchor: middle;
}
.agentic-cycle-svg .phase-tech {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10.5px;
    fill: #4b5563;
    text-anchor: middle;
}

/* 사이클 화살표 (페이즈 사이) */
.agentic-cycle-svg .cycle-arrow {
    fill: var(--azure-primary);
    stroke: #fff;
    stroke-width: 1;
}

/* 페이즈별 컬러 (색상 변수) */
.agentic-cycle-svg .phase-node[data-phase="develop"]  .phase-rect { stroke: #0078D4; }
.agentic-cycle-svg .phase-node[data-phase="develop"]  .phase-num-circle { fill: #0078D4; }
.agentic-cycle-svg .phase-node[data-phase="develop"]  .phase-title { fill: #004578; }
.agentic-cycle-svg .phase-node[data-phase="source"]   .phase-rect { stroke: #24292E; }
.agentic-cycle-svg .phase-node[data-phase="source"]   .phase-num-circle { fill: #24292E; }
.agentic-cycle-svg .phase-node[data-phase="source"]   .phase-title { fill: #24292E; }
.agentic-cycle-svg .phase-node[data-phase="build"]    .phase-rect { stroke: #2EA44F; }
.agentic-cycle-svg .phase-node[data-phase="build"]    .phase-num-circle { fill: #2EA44F; }
.agentic-cycle-svg .phase-node[data-phase="build"]    .phase-title { fill: #1a7f37; }
.agentic-cycle-svg .phase-node[data-phase="secure"]   .phase-rect { stroke: #C9510C; }
.agentic-cycle-svg .phase-node[data-phase="secure"]   .phase-num-circle { fill: #C9510C; }
.agentic-cycle-svg .phase-node[data-phase="secure"]   .phase-title { fill: #983B0A; }
.agentic-cycle-svg .phase-node[data-phase="deploy"]   .phase-rect { stroke: #0078D4; }
.agentic-cycle-svg .phase-node[data-phase="deploy"]   .phase-num-circle { fill: #0078D4; }
.agentic-cycle-svg .phase-node[data-phase="deploy"]   .phase-title { fill: #004578; }
.agentic-cycle-svg .phase-node[data-phase="operate"]  .phase-rect { stroke: #6E40C9; }
.agentic-cycle-svg .phase-node[data-phase="operate"]  .phase-num-circle { fill: #6E40C9; }
.agentic-cycle-svg .phase-node[data-phase="operate"]  .phase-title { fill: #5328a3; }
.agentic-cycle-svg .phase-node[data-phase="improve"]  .phase-rect { stroke: #BF3989; }
.agentic-cycle-svg .phase-node[data-phase="improve"]  .phase-num-circle { fill: #BF3989; }
.agentic-cycle-svg .phase-node[data-phase="improve"]  .phase-title { fill: #8c2466; }

/* 사이클 다이어그램 캡션 */
.agentic-cycle-caption {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 다이어그램 아래 페이즈 상세 카드 그리드 */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.phase-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--azure-primary);
    padding: 1.2rem 1.3rem 1.1rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.phase-card:hover,
.phase-card.is-hovered {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
.phase-card .phase-card-num {
    position: absolute; top: -16px; left: 1rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--azure-primary); color: #fff;
    font-size: 0.85rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid #fff;
}
.phase-card h5 {
    font-weight: 800; font-size: 1rem; color: var(--azure-dark);
    margin: 0.3rem 0 0.2rem; padding-left: 2.4rem;
}
.phase-card .phase-card-sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem; color: #888;
    padding-left: 2.4rem; margin-bottom: 0.7rem;
}
.phase-card p {
    font-size: 0.84rem; color: #555; margin-bottom: 0.7rem; line-height: 1.65;
}
.phase-card .tech-stack {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.phase-card .tech-stack .tech-pill {
    background: #f6f8fa; border: 1px solid #e5e7eb;
    color: #24292E; padding: 0.22rem 0.65rem;
    border-radius: 999px; font-size: 0.74rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.phase-card .tech-stack .tech-pill i { font-size: 0.85rem; }

/* 페이즈별 상세 카드 색상 */
.phase-card[data-phase="develop"]  { border-top-color: #0078D4; }
.phase-card[data-phase="develop"]  .phase-card-num { background: #0078D4; }
.phase-card[data-phase="develop"]  h5 { color: #004578; }
.phase-card[data-phase="develop"]  .tech-pill i { color: #0078D4; }
.phase-card[data-phase="source"]   { border-top-color: #24292E; }
.phase-card[data-phase="source"]   .phase-card-num { background: #24292E; }
.phase-card[data-phase="source"]   h5 { color: #24292E; }
.phase-card[data-phase="source"]   .tech-pill i { color: #24292E; }
.phase-card[data-phase="build"]    { border-top-color: #2EA44F; }
.phase-card[data-phase="build"]    .phase-card-num { background: #2EA44F; }
.phase-card[data-phase="build"]    h5 { color: #1a7f37; }
.phase-card[data-phase="build"]    .tech-pill i { color: #2EA44F; }
.phase-card[data-phase="secure"]   { border-top-color: #C9510C; }
.phase-card[data-phase="secure"]   .phase-card-num { background: #C9510C; }
.phase-card[data-phase="secure"]   h5 { color: #983B0A; }
.phase-card[data-phase="secure"]   .tech-pill i { color: #C9510C; }
.phase-card[data-phase="deploy"]   { border-top-color: #0078D4; }
.phase-card[data-phase="deploy"]   .phase-card-num { background: #0078D4; }
.phase-card[data-phase="deploy"]   h5 { color: #004578; }
.phase-card[data-phase="deploy"]   .tech-pill i { color: #0078D4; }
.phase-card[data-phase="operate"]  { border-top-color: #6E40C9; }
.phase-card[data-phase="operate"]  .phase-card-num { background: #6E40C9; }
.phase-card[data-phase="operate"]  h5 { color: #5328a3; }
.phase-card[data-phase="operate"]  .tech-pill i { color: #6E40C9; }
.phase-card[data-phase="improve"]  { border-top-color: #BF3989; }
.phase-card[data-phase="improve"]  .phase-card-num { background: #BF3989; }
.phase-card[data-phase="improve"]  h5 { color: #8c2466; }
.phase-card[data-phase="improve"]  .tech-pill i { color: #BF3989; }

/* Before/After 비교 그리드 (전통 SDLC vs Agentic SDLC) */
.before-after-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin: 1rem 0 1.5rem;
}
.before-after-card {
    background: #fff; border-radius: 12px;
    padding: 1.2rem 1.4rem; box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
}
.before-after-card.before { border-top: 4px solid #888; }
.before-after-card.after  { border-top: 4px solid var(--azure-primary); }
.before-after-card h5 {
    font-weight: 800; font-size: 1rem; margin-bottom: 0.6rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.before-after-card.before h5 { color: #555; }
.before-after-card.after  h5 { color: var(--azure-primary); }
.before-after-card ul {
    margin: 0; padding-left: 1.2rem;
    font-size: 0.86rem; color: #444; line-height: 1.8;
}
.before-after-card .tag {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    padding: 0.15rem 0.55rem; border-radius: 999px;
    letter-spacing: 0.04em; text-transform: uppercase;
    vertical-align: middle;
}
.before-after-card.before .tag { background: #e9ecef; color: #555; }
.before-after-card.after  .tag { background: var(--azure-primary); color: #fff; }

/* LLM 모델 칩 */
.llm-chip-row {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
    margin: 0.6rem 0 0.4rem;
}
.llm-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 999px; padding: 0.3rem 0.8rem;
    font-size: 0.82rem; font-weight: 600; color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.llm-chip img { width: 1.1rem; height: 1.1rem; }
.llm-chip.openai  { border-color: #10a37f; }
.llm-chip.anthropic { border-color: #d97757; }
.llm-chip.xai      { border-color: #1a1a1a; }

/* Role badge — 사람 vs 에이전트 책임 매트릭스 */
.role-matrix {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem; margin: 1rem 0 1.5rem;
}
.role-card {
    background: #fff; border-radius: 12px;
    padding: 1rem 1.2rem; border: 1px solid #e5e7eb;
    box-shadow: var(--card-shadow);
}
.role-card .role-title {
    font-weight: 800; font-size: 0.9rem;
    color: #1f2937; margin-bottom: 0.3rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.role-card .role-title i { color: var(--azure-primary); }
.role-card.human .role-title i { color: #2E7D32; }
.role-card.agent .role-title i { color: #6E40C9; }
.role-card ul {
    margin: 0; padding-left: 1.1rem;
    font-size: 0.82rem; color: #555; line-height: 1.7;
}

/* Agentic 사이클 반응형 */
@media (max-width: 768px) {
    .before-after-grid { grid-template-columns: 1fr; }
    .agentic-cycle { padding: 0.8rem 0.3rem; }
}

/* =====================================================================
   DEV ENV DIAGRAM — VS Code · Copilot · MCP · LLMs 관계도
   ===================================================================== */
.dev-env-diagram {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.4rem 1rem 1rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}
.dev-env-svg {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
}

/* 공용 박스 / 텍스트 베이스 */
.dev-env-svg .de-rect {
    fill: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}
.dev-env-svg .de-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-anchor: middle;
}
.dev-env-svg .de-sub {
    font-family: 'Fira Code', monospace;
    font-size: 10.5px;
    fill: #6b7280;
    text-anchor: middle;
}
.dev-env-svg .de-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10.5px;
    fill: #4b5563;
    text-anchor: middle;
}

/* 개발자 */
.dev-env-svg .de-user-rect {
    fill: #fff;
    stroke: var(--azure-primary);
    stroke-width: 2;
}
.dev-env-svg .de-user-icon {
    fill: var(--azure-primary);
}
.dev-env-svg .de-user-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 13px;
    fill: var(--azure-dark);
    text-anchor: middle;
}

/* VS Code 컨테이너 (중앙 큰 박스) */
.dev-env-svg .de-vscode-rect {
    fill: #f0f7ff;
    stroke: #007ACC;
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
}
.dev-env-svg .de-vscode-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    font-size: 13px;
    fill: #005a9e;
    text-anchor: start;
}
.dev-env-svg .de-vscode-badge {
    fill: #007ACC;
}
.dev-env-svg .de-vscode-badge-text {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
}

/* VS Code 내부 — 코어 IDE 빌딩블럭 */
.dev-env-svg .de-vscode-section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 11px;
    fill: #005a9e;
    text-anchor: middle;
    letter-spacing: 0.2px;
}
.dev-env-svg .de-core-block {
    transition: transform 0.18s ease;
}
.dev-env-svg .de-core-block:hover {
    transform: translateY(-2px);
}
.dev-env-svg .de-core-block-rect {
    fill: #fff;
    stroke: #007ACC;
    stroke-width: 1.4;
    filter: drop-shadow(0 1px 2px rgba(0, 122, 204, 0.18));
}
.dev-env-svg .de-core-block-strip {
    fill: #007ACC;
}
.dev-env-svg .de-core-block-icon {
    fill: none;
    stroke: #007ACC;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dev-env-svg .de-core-block-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    fill: #005a9e;
    text-anchor: middle;
}

/* VS Code 내부 — Copilot Agent */
.dev-env-svg .de-copilot-rect {
    fill: #fff;
    stroke: var(--github-color);
    stroke-width: 2.5;
}
.dev-env-svg .de-copilot-title { fill: var(--github-color); }

/* VS Code 내부 — Extensions */
.dev-env-svg .de-ext-rect {
    fill: #fff;
    stroke: #2EA44F;
    stroke-width: 2;
}
.dev-env-svg .de-ext-title { fill: #1a7f37; }

/* LLM 클러스터 (우측 상단) */
.dev-env-svg .de-llm-rect {
    fill: #fafaff;
    stroke: #6E40C9;
    stroke-width: 2;
    stroke-dasharray: 5 4;
}
.dev-env-svg .de-llm-title { fill: #5328a3; text-anchor: start; }
.dev-env-svg .de-llm-item-rect {
    fill: #fff;
    stroke: #c7b8eb;
    stroke-width: 1.5;
}
.dev-env-svg .de-llm-item-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    fill: #1f2937;
    text-anchor: middle;
}

/* MCP 클러스터 (우측 하단) */
.dev-env-svg .de-mcp-rect {
    fill: #fff7ed;
    stroke: #C9510C;
    stroke-width: 2;
    stroke-dasharray: 5 4;
}
.dev-env-svg .de-mcp-title { fill: #983B0A; text-anchor: start; }
.dev-env-svg .de-mcp-item-rect {
    fill: #fff;
    stroke: #f0b890;
    stroke-width: 1.5;
}
.dev-env-svg .de-mcp-item-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    fill: #1f2937;
    text-anchor: middle;
}
.dev-env-svg .de-mcp-item-sub {
    font-family: 'Fira Code', monospace;
    font-size: 9.5px;
    fill: #6b7280;
    text-anchor: middle;
}

/* 화살표 (선 + 라벨) */
.dev-env-svg .de-arrow-line {
    fill: none;
    stroke-width: 2;
}
.dev-env-svg .de-arrow-line.solid { stroke-dasharray: none; }
.dev-env-svg .de-arrow-line.dashed { stroke-dasharray: 5 4; }
.dev-env-svg .de-arrow-line.user { stroke: var(--azure-primary); }
.dev-env-svg .de-arrow-line.llm  { stroke: #6E40C9; }
.dev-env-svg .de-arrow-line.mcp  { stroke: #C9510C; }
.dev-env-svg .de-arrow-line.tool { stroke: #2EA44F; }
.dev-env-svg .de-arrow-head.user { fill: var(--azure-primary); }
.dev-env-svg .de-arrow-head.llm  { fill: #6E40C9; }
.dev-env-svg .de-arrow-head.mcp  { fill: #C9510C; }
.dev-env-svg .de-arrow-head.tool { fill: #2EA44F; }

.dev-env-svg .de-arrow-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-anchor: middle;
}
.dev-env-svg .de-arrow-label.user { fill: var(--azure-dark); }
.dev-env-svg .de-arrow-label.llm  { fill: #5328a3; }
.dev-env-svg .de-arrow-label.mcp  { fill: #983B0A; }
.dev-env-svg .de-arrow-label.tool { fill: #1a7f37; }
.dev-env-svg .de-arrow-label-bg {
    fill: #fff;
    stroke: #e5e7eb;
    stroke-width: 1;
}

/* 외부 시스템 아이콘 (MCP 너머) */
.dev-env-svg .de-ext-system {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    fill: #6b7280;
    text-anchor: middle;
}

/* 다이어그램 캡션 */
.dev-env-caption {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .has-sidebar .main-content { margin-left: 0; }
    .hero-section h1 { font-size: 1.8rem; }
    .content-section { padding: 2rem 1.2rem; }
    .flow-diagram { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

/* =====================================================================
   AI SDLC — VS Code · GitHub Copilot · Azure 순환 문서
   ===================================================================== */
.page-ai-sdlc .ai-sdlc-hero-title {
    margin-top: 0.8rem;
}
.page-ai-sdlc .hero-section .lead {
    max-width: 880px;
}
.page-ai-sdlc .agent-card .card-icon {
    background: var(--github-gradient);
}
.ai-sdlc-card.ide .card-icon { background: linear-gradient(135deg, #007ACC, #005a9e); }
.ai-sdlc-card.agent .card-icon { background: #fff; border: 2px solid #d0d7de; color: var(--github-color); }
.ai-sdlc-card.runtime .card-icon { background: linear-gradient(135deg, var(--azure-primary), var(--azure-dark)); }
.ai-sdlc-card.agent .badge-type { background: #f6f8fa; color: var(--github-color); }
.ai-sdlc-card.ide .badge-type { background: #e7f3ff; color: #005a9e; }
.ai-sdlc-card.runtime .badge-type { background: var(--azure-light); color: var(--azure-dark); }
.ai-sdlc-card-icon-img {
    width: 2.1rem;
    height: 2.1rem;
}

.ai-sdlc-relationship-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.2rem;
    margin: 1.2rem 0;
}
.ai-sdlc-plane-dev { grid-column: 1; grid-row: 1; }
.ai-sdlc-plane-github { grid-column: 3; grid-row: 1; }
.ai-sdlc-plane-azure { grid-column: 1 / 4; grid-row: 3; }
.ai-sdlc-map-arrow.dev-to-github { grid-column: 2; grid-row: 1; }
.ai-sdlc-map-arrow.github-to-azure { grid-column: 1 / 4; grid-row: 2; }
.ai-sdlc-map-arrow.azure-to-github { grid-column: 1 / 4; grid-row: 4; }
.ai-sdlc-plane {
    background: #fff;
    border: 1.5px solid #d0d7de;
    border-radius: 14px;
    padding: 1rem;
    min-height: 100%;
    box-shadow: 0 2px 12px rgba(27, 31, 36, 0.05);
}
.ai-sdlc-plane-dev { border-top: 4px solid #007ACC; }
.ai-sdlc-plane-github { border-top: 4px solid var(--github-color); }
.ai-sdlc-plane-azure { border-top: 4px solid var(--azure-primary); }
.ai-sdlc-plane-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}
.ai-sdlc-plane-heading i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--github-gradient);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ai-sdlc-plane-dev .ai-sdlc-plane-heading i { background: linear-gradient(135deg, #007ACC, #005a9e); }
.ai-sdlc-plane-azure .ai-sdlc-plane-heading i { background: linear-gradient(135deg, var(--azure-primary), var(--azure-dark)); }
.ai-sdlc-plane-heading h3 {
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
    color: #1f2937;
}
.ai-sdlc-plane-heading span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.15rem;
}
.ai-sdlc-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}
.ai-sdlc-mini-grid.azure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ai-sdlc-mini-node {
    background: #f6f8fa;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    min-height: 86px;
}
.ai-sdlc-mini-node strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.ai-sdlc-mini-node span {
    display: block;
    font-size: 0.76rem;
    color: #57606a;
    line-height: 1.45;
}
.ai-sdlc-mini-node.primary { background: #e7f3ff; border-color: #91caff; }
.ai-sdlc-mini-node.copilot { background: #f6f8fa; border-color: #8c959f; }
.ai-sdlc-mini-node.secure { background: #fff3e8; border-color: #ffbf8a; }
.ai-sdlc-mini-node.data { background: #eef7ff; border-color: #91caff; }
.ai-sdlc-mini-node.ops { background: #f4f0ff; border-color: #c7b8eb; }
.ai-sdlc-model-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}
.ai-sdlc-model-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #24292f;
}
.ai-sdlc-model-chip img {
    width: 1rem;
    height: 1rem;
}
.ai-sdlc-model-chip.openai { border-color: #10a37f; }
.ai-sdlc-model-chip.anthropic { border-color: #d97757; }
.ai-sdlc-model-chip.gemini { border-color: #4285f4; }
.ai-sdlc-map-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--github-color);
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    min-height: 58px;
}
.ai-sdlc-map-arrow i {
    font-size: 1.7rem;
    line-height: 1;
}
.ai-sdlc-map-arrow.github-to-azure { color: var(--azure-primary); }
.ai-sdlc-map-arrow.azure-to-github { color: #6e5494; }
.ai-sdlc-map-arrow span {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: #6b7280;
}

.ai-sdlc-cycle-shell {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1rem;
    margin: 1.2rem 0;
    overflow-x: auto;
}
.ai-sdlc-cycle-svg {
    display: block;
    width: 100%;
    min-width: 1050px;
    height: auto;
    margin: 0 auto;
}
.ai-sdlc-cycle-ring {
    fill: none;
    stroke: #d8dee4;
    stroke-width: 2.5;
}
.ai-sdlc-hub {
    fill: url(#aiSdlcHubGradient);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}
.ai-sdlc-hub-title,
.ai-sdlc-hub-sub,
.ai-sdlc-hub-tag,
.ai-sdlc-node-title,
.ai-sdlc-node-tech,
.ai-sdlc-node-num-text {
    font-family: 'Noto Sans KR', sans-serif;
    text-anchor: middle;
}
.ai-sdlc-hub-title {
    font-weight: 900;
    font-size: 19px;
    fill: #fff;
}
.ai-sdlc-hub-sub {
    font-size: 12px;
    fill: rgba(255, 255, 255, 0.86);
}
.ai-sdlc-hub-tag {
    font-size: 11px;
    fill: rgba(255, 255, 255, 0.74);
}
.ai-sdlc-cycle-flow-ring {
    fill: none;
    stroke: var(--azure-primary);
    stroke-width: 2.8;
    opacity: 0.72;
}
.ai-sdlc-phase-node {
    cursor: pointer;
    outline: none;
}
.ai-sdlc-node-rect {
    fill: #fff;
    stroke: #d0d7de;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.07));
    transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}
.ai-sdlc-phase-node:hover .ai-sdlc-node-rect,
.ai-sdlc-phase-node:focus .ai-sdlc-node-rect,
.ai-sdlc-phase-node.is-hovered .ai-sdlc-node-rect {
    fill: #f8fafc;
    stroke-width: 4;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}
.ai-sdlc-node-num {
    fill: var(--azure-primary);
    stroke: #fff;
    stroke-width: 4;
    filter: drop-shadow(0 3px 7px rgba(27, 31, 36, 0.18));
}
.ai-sdlc-node-num-text {
    font-weight: 900;
    font-size: 15px;
    fill: #fff;
}
.ai-sdlc-node-title {
    font-size: 15px;
    font-weight: 900;
    fill: #1f2937;
}
.ai-sdlc-node-sub {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    fill: #6b7280;
    text-anchor: middle;
}
.ai-sdlc-node-tech {
    font-size: 11px;
    fill: #4b5563;
}
.ai-sdlc-phase-node[data-phase="ide"] .ai-sdlc-node-rect { stroke: #007ACC; }
.ai-sdlc-phase-node[data-phase="ide"] .ai-sdlc-node-num { fill: #007ACC; }
.ai-sdlc-phase-node[data-phase="source"] .ai-sdlc-node-rect { stroke: #24292e; }
.ai-sdlc-phase-node[data-phase="source"] .ai-sdlc-node-num { fill: #24292e; }
.ai-sdlc-phase-node[data-phase="cicd"] .ai-sdlc-node-rect { stroke: #2ea44f; }
.ai-sdlc-phase-node[data-phase="cicd"] .ai-sdlc-node-num { fill: #2ea44f; }
.ai-sdlc-phase-node[data-phase="secure"] .ai-sdlc-node-rect { stroke: #c9510c; }
.ai-sdlc-phase-node[data-phase="secure"] .ai-sdlc-node-num { fill: #c9510c; }
.ai-sdlc-phase-node[data-phase="deploy"] .ai-sdlc-node-rect { stroke: #0078d4; }
.ai-sdlc-phase-node[data-phase="deploy"] .ai-sdlc-node-num { fill: #0078d4; }
.ai-sdlc-phase-node[data-phase="operate"] .ai-sdlc-node-rect { stroke: #6e40c9; }
.ai-sdlc-phase-node[data-phase="operate"] .ai-sdlc-node-num { fill: #6e40c9; }
.ai-sdlc-phase-node[data-phase="issue"] .ai-sdlc-node-rect { stroke: #bf3989; }
.ai-sdlc-phase-node[data-phase="issue"] .ai-sdlc-node-num { fill: #bf3989; }
.ai-sdlc-phase-node[data-phase="pr"] .ai-sdlc-node-rect { stroke: #8250df; }
.ai-sdlc-phase-node[data-phase="pr"] .ai-sdlc-node-num { fill: #8250df; }
.ai-sdlc-cycle-caption {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

.ai-sdlc-phase-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ai-sdlc-phase-card.is-hovered {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
    border-color: #d0d7de;
}
.ai-sdlc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0;
}
.ai-sdlc-pill-row span {
    display: inline-flex;
    align-items: center;
    background: #f6f8fa;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #24292f;
}
.ai-sdlc-building-map {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #d8dee4;
    border-radius: 14px;
    padding: 1rem;
    margin: 1.1rem 0;
    box-shadow: 0 2px 12px rgba(27, 31, 36, 0.05);
}
.ai-sdlc-building-map.compact {
    margin-top: 1rem;
}
.ai-sdlc-block-hub {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--github-gradient);
    color: #fff;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
.ai-sdlc-block-hub i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.ai-sdlc-block-hub strong,
.ai-sdlc-block-hub span {
    display: block;
}
.ai-sdlc-block-hub strong {
    font-weight: 900;
    font-size: 1rem;
}
.ai-sdlc-block-hub span {
    font-size: 0.8rem;
    opacity: 0.86;
    line-height: 1.5;
}
.ai-sdlc-block-hub.actions { background: linear-gradient(135deg, #2ea44f, #1a7f37); }
.ai-sdlc-block-hub.azure { background: linear-gradient(135deg, var(--azure-primary), var(--azure-dark)); }
.ai-sdlc-block-hub.security { background: linear-gradient(135deg, #c9510c, #983b0a); }
.ai-sdlc-block-hub.ops { background: linear-gradient(135deg, #6e40c9, #5328a3); }
.ai-sdlc-block-hub.issue { background: linear-gradient(135deg, #bf3989, #8250df); }
.ai-sdlc-block-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.8rem;
}
.ai-sdlc-block-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ai-sdlc-block {
    background: #fff;
    border: 1px solid #d8dee4;
    border-top: 4px solid #8c959f;
    border-radius: 11px;
    padding: 0.85rem 0.9rem;
    min-height: 128px;
    box-shadow: 0 2px 8px rgba(27, 31, 36, 0.04);
}
.ai-sdlc-block i {
    color: #57606a;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}
.ai-sdlc-block strong,
.ai-sdlc-block span {
    display: block;
}
.ai-sdlc-block strong {
    font-weight: 900;
    font-size: 0.86rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.ai-sdlc-block span {
    font-size: 0.76rem;
    color: #57606a;
    line-height: 1.55;
}
.ai-sdlc-block.ide { border-top-color: #007acc; }
.ai-sdlc-block.ide i { color: #007acc; }
.ai-sdlc-block.github { border-top-color: #24292e; }
.ai-sdlc-block.github i { color: #24292e; }
.ai-sdlc-block.terminal { border-top-color: #57606a; }
.ai-sdlc-block.terminal i { color: #57606a; }
.ai-sdlc-block.mcp { border-top-color: #c9510c; }
.ai-sdlc-block.mcp i { color: #c9510c; }
.ai-sdlc-block.model { border-top-color: #6e40c9; }
.ai-sdlc-block.model i { color: #6e40c9; }
.ai-sdlc-block.chat { border-top-color: #bf3989; }
.ai-sdlc-block.chat i { color: #bf3989; }
.ai-sdlc-block.actions { border-top-color: #2ea44f; }
.ai-sdlc-block.actions i { color: #2ea44f; }
.ai-sdlc-block.security { border-top-color: #c9510c; }
.ai-sdlc-block.security i { color: #c9510c; }
.ai-sdlc-block.azure { border-top-color: var(--azure-primary); }
.ai-sdlc-block.azure i { color: var(--azure-primary); }
.ai-sdlc-block.ops { border-top-color: #6e40c9; }
.ai-sdlc-block.ops i { color: #6e40c9; }
.ai-sdlc-block.issue { border-top-color: #bf3989; }
.ai-sdlc-block.issue i { color: #bf3989; }
.ai-sdlc-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.ai-sdlc-split-grid ul,
.ai-sdlc-role-card ul {
    margin-bottom: 0;
}
.ai-sdlc-lane {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 0.4rem;
}
.ai-sdlc-lane-item {
    min-width: 170px;
    flex: 1 1 170px;
    background: #fff;
    border: 1.5px solid #d8dee4;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 10px rgba(27, 31, 36, 0.05);
    text-align: center;
}
.ai-sdlc-lane-item i {
    display: block;
    color: var(--azure-primary);
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}
.ai-sdlc-lane-item strong {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1f2937;
}
.ai-sdlc-lane-item span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.15rem;
}
.ai-sdlc-lane-arrow {
    display: flex;
    align-items: center;
    color: var(--azure-primary);
    font-size: 1.4rem;
}
.ai-sdlc-loop-lane .ai-sdlc-lane-item i { color: #6e5494; }
.ai-sdlc-check-card,
.ai-sdlc-signal-grid > div,
.ai-sdlc-azure-card,
.ai-sdlc-role-card {
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.ai-sdlc-check-card {
    height: 100%;
    padding: 1rem;
    text-align: center;
}
.ai-sdlc-check-card i {
    color: #c9510c;
    font-size: 1.5rem;
}
.ai-sdlc-check-card strong,
.ai-sdlc-check-card span {
    display: block;
}
.ai-sdlc-check-card strong {
    font-weight: 800;
    margin-top: 0.4rem;
}
.ai-sdlc-check-card span {
    font-size: 0.76rem;
    color: #6b7280;
}
.ai-sdlc-azure-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.2rem 0;
}
.ai-sdlc-azure-card {
    padding: 1rem;
    min-height: 145px;
    border-top: 4px solid var(--azure-primary);
}
.ai-sdlc-azure-card i {
    color: var(--azure-primary);
    font-size: 1.45rem;
}
.ai-sdlc-azure-card strong,
.ai-sdlc-azure-card span {
    display: block;
}
.ai-sdlc-azure-card strong {
    font-weight: 800;
    margin: 0.35rem 0 0.2rem;
    color: #1f2937;
}
.ai-sdlc-azure-card span {
    font-size: 0.78rem;
    color: #57606a;
    line-height: 1.55;
}
.ai-sdlc-azure-card.iac { border-top-color: #8250df; }
.ai-sdlc-azure-card.iac i { color: #8250df; }
.ai-sdlc-azure-card.container { border-top-color: #2ea44f; }
.ai-sdlc-azure-card.container i { color: #2ea44f; }
.ai-sdlc-azure-card.data { border-top-color: #0078d4; }
.ai-sdlc-azure-card.data i { color: #0078d4; }
.ai-sdlc-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.ai-sdlc-signal-grid > div {
    padding: 1rem;
    text-align: center;
    border-top: 4px solid #6e40c9;
}
.ai-sdlc-signal-grid i {
    display: block;
    color: #6e40c9;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}
.ai-sdlc-signal-grid strong,
.ai-sdlc-signal-grid span {
    display: block;
}
.ai-sdlc-signal-grid strong {
    font-weight: 800;
    color: #1f2937;
}
.ai-sdlc-signal-grid span {
    font-size: 0.76rem;
    color: #6b7280;
}
.ai-sdlc-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.ai-sdlc-role-card {
    padding: 1.1rem 1.2rem;
    border-top: 4px solid #2ea44f;
}
.ai-sdlc-role-card.agent { border-top-color: #6e40c9; }
.ai-sdlc-role-card.guardrail { border-top-color: #c9510c; }
.ai-sdlc-role-title {
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.ai-sdlc-role-title i { color: #2ea44f; }
.ai-sdlc-role-card.agent .ai-sdlc-role-title i { color: #6e40c9; }
.ai-sdlc-role-card.guardrail .ai-sdlc-role-title i { color: #c9510c; }
.ai-sdlc-role-card li {
    font-size: 0.84rem;
    color: #555;
    margin-bottom: 0.35rem;
}

@media (max-width: 1100px) {
    .ai-sdlc-block-grid,
    .ai-sdlc-block-grid.five,
    .ai-sdlc-mini-grid.azure-grid,
    .ai-sdlc-azure-grid,
    .ai-sdlc-signal-grid,
    .ai-sdlc-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ai-sdlc-relationship-map {
        grid-template-columns: 1fr;
    }
    .ai-sdlc-plane-dev,
    .ai-sdlc-plane-github,
    .ai-sdlc-plane-azure,
    .ai-sdlc-map-arrow.dev-to-github,
    .ai-sdlc-map-arrow.github-to-azure,
    .ai-sdlc-map-arrow.azure-to-github {
        grid-column: 1;
        grid-row: auto;
    }
    .ai-sdlc-map-arrow.dev-to-github i {
        transform: rotate(90deg);
    }
    .ai-sdlc-mini-grid,
    .ai-sdlc-mini-grid.azure-grid,
    .ai-sdlc-block-grid,
    .ai-sdlc-block-grid.five,
    .ai-sdlc-split-grid,
    .ai-sdlc-azure-grid,
    .ai-sdlc-signal-grid,
    .ai-sdlc-role-grid {
        grid-template-columns: 1fr;
    }
    .ai-sdlc-lane-arrow {
        flex-basis: 100%;
        justify-content: center;
        transform: rotate(90deg);
    }
}
