#thinking-convergence{
    --bg: #ffffff;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --good: #10b981;
    --bad: #ef4444;
    --warn: #f59e0b;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --shadow: 0 10px 30px rgba(0,0,0,.05);
    --radius: 16px;
}
#thinking-convergence-tabs{
    --bg: #ffffff;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --good: #10b981;
    --bad: #ef4444;
    --warn: #f59e0b;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --shadow: 0 10px 30px rgba(0,0,0,.05);
    --radius: 16px;
}

 #thinking-convergence-image{
     --bg: #ffffff;
     --panel: #ffffff;
     --text: #111827;
     --muted: #6b7280;
     --line: #e5e7eb;
     --good: #10b981;
     --bad: #ef4444;
     --warn: #f59e0b;
     --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
     --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
     --shadow: 0 10px 30px rgba(0,0,0,.05);
     --radius: 16px;
 }
.it-section{
    background: radial-gradient(1200px 600px at 20% 0%, #f5f7ff 0%, #ffffff 55%) no-repeat;
    color: var(--text);
    padding: 0 5% 2rem;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    font-family: var(--sans);
}
.it-wrap{ max-width:1400px; margin:0 auto; width: 100%; }
.it-header{ margin: 0; height: 10vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.it-title{ font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: inherit; line-height: 1.3; }
.it-subtitle{ font-size: 1.125rem; color: #4b5563; margin-top: -0.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

@media (max-width: 768px) {
    .it-title {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .it-title {
        font-size: 1.75rem !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .it-mono {
        padding: 12px;
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
        margin: 0;
        text-indent: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .it-title {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 1024px) {
    .it-section{ padding-bottom: 1rem; }
    .it-header{ height: 8vh; }
    .it-title{ font-size: 2.4rem; }
    .it-subtitle{ font-size: 1rem; margin-top: -0.35rem; }

    .it-stack{ gap: 14px; margin-top: 12px; }
    .it-card{ padding: 14px; overflow: hidden; }
    .it-cardHead{ margin-bottom: 12px; }
    .it-cardTitle{ font-size: 16px; }

    .it-sliderBox{ padding: 10px 12px; margin-bottom: 12px; }
    .it-chip{ font-size: 11px; padding: 3px 8px; }
    .it-epochLabel{ font-size: 12px; }
    .it-sliderTicks{ font-size: 11px; }

    .it-block{ margin-top: 12px; }
    .it-blockLabel{ font-size: 11px; margin-bottom: 6px; }

    .it-mono{ 
        font-size: 14px; 
        padding: 12px; 
        line-height: 1.5; 
        word-wrap: break-word; 
        white-space: normal; 
        overflow-wrap: break-word; 
        word-break: break-word;
        margin: 0; 
        text-indent: 0; 
        width: 100%;
        box-sizing: border-box;
    }
    .it-proseBox{ font-size: 12px; padding: 6px; line-height: 1.45; }
    .it-logicBox{ padding: 6px; }
    .it-answerBox{ font-size: 13px; padding: 6px; }
    .it-list li{ margin: 6px 0; font-size: 12px; }

    .it-trace{ padding: 6px; }
    .it-traceLine{ padding: 6px; margin-bottom: 6px; }
    .it-traceText{ font-size: 12px; line-height: 1.35; }

    .it-outputRow{ gap: 10px; margin-top: 6px; }
    .it-output{ padding: 6px; }
    .it-outputLabel{ font-size: 11px; margin-bottom: 6px; }
    .it-outputText{ font-size: 13px; }

    .it-footnote{ display: none; }
}

.it-stack{ display:grid; grid-template-columns:1fr; gap:24px; margin-top:24px; }
@media (min-width: 960px){
    .it-stack{ grid-template-columns: 1fr 1fr; align-items: stretch; }
}

@media (min-width: 1024px) {
    .it-card{ min-height: 0; }
}

.it-sliderBox{
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}
.it-sliderTop{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.it-chip{
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    font-weight: 600;
}
.it-epochLabel{ font-size:13px; font-weight:700; color:var(--text); }
.it-slider{ width:100%; accent-color:#111827; }
.it-sliderTicks{ display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin-top:8px; font-weight:500; }

.it-sliderWrap{ position: relative; width: 100%; }
.it-mark{
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d5db;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    pointer-events: none;
}
.it-mark0{ left: 0%; }
.it-mark1{ left: 50%; }
.it-mark2{ left: 100%; }

.it-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
}
.it-cardGlow{
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.05);
}
.it-cardHead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:10px; }
.it-cardTitle{ font-weight:700; font-size:18px; letter-spacing:-.01em; }

.it-badge{
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    background: #f9fafb;
    font-weight: 500;
}

.it-status{ font-size:12px; padding:4px 12px; border-radius:999px; border:1px solid transparent; white-space:nowrap; font-weight:600; }
.it-statusBad{ color:var(--bad); background:#fef2f2; border-color:#fecaca; }
.it-statusGood{ color:var(--good); background:#ecfdf5; border-color:#a7f3d0; }

.it-block{ margin-top:24px; }
/* Remove top margin if block follows a slider box (tight packing) */
.it-sliderBox + .it-block { margin-top: 0; }

.it-blockLabel{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); margin-bottom:10px; }

.it-mono{
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    color: #374151;
    width: 100%;
    box-sizing: border-box;
}

.it-proseBox{
    font-size: 14px;
    line-height: 1.6;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    color: #374151;
}

.it-answerBox{
    font-size: 15px;
    font-weight: 600;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    color: #111827;
}

.it-list{ margin:0; padding-left:0; list-style:none; }
.it-list li{ margin:10px 0; color:#374151; font-size:14px; display:flex; gap:8px; }
.it-k{ color:var(--muted); font-family:var(--mono); font-size:12px; flex-shrink:0; margin-top:2px; }

.it-logicTag{
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
    border-width: 1px;
    font-weight: 700;
    margin-top: 1px;
}

.it-logicBox{
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}

/* Custom Slider Styling */
.it-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    border: 0;
    padding: 0;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}
.it-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: #d1fae5;
    border-radius: 999px;
    border: 1px solid #065f46;
}
.it-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #065f46;
    cursor: grab;
    margin-top: -7px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.it-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.it-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #065f46;
    cursor: grab;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.it-slider::-moz-range-track {
    height: 6px;
    background: #d1fae5;
    border-radius: 999px;
    border: 1px solid #065f46;
}

.it-trace{
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f9fafb;
    padding: 12px;
}
.it-traceLine{
    display: flex; gap: 12px; padding: 8px 10px; border-radius: 8px; align-items: flex-start;
    background: #ffffff;
    border: 1px solid transparent;
    margin-bottom: 8px;
}
.it-traceLine:last-child{ margin-bottom:0; }

.it-tag{
    font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid transparent;
    white-space: nowrap; font-weight: 600; flex-shrink: 0; margin-top: 1px;
}
.it-on{ background:#ecfdf5; color:var(--good); border-color:#a7f3d0; }
.it-off{ background:#fef2f2; color:var(--bad); border-color:#fecaca; }
.it-warn{ background:#fffbeb; color:var(--warn); border-color:#fde68a; }

.it-traceText{ color:#1f2937; font-size:13px; line-height:1.4; font-weight:500; }

.it-footnote{ margin-top:16px; font-size:13px; color:var(--muted); line-height:1.5; }

.it-outputRow{ display:grid; grid-template-columns:1fr; gap:16px; margin-top:24px; }
@media (min-width: 560px){ .it-outputRow{ grid-template-columns:1fr 1fr; } }

.it-output{
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
}
.it-outputLabel{ font-size:12px; font-weight:600; color:var(--muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:0.05em; }
.it-outputText{ font-size:15px; font-weight:600; color:#111827; }
.it-delta{ color:var(--muted); font-weight:600; font-size:14px; line-height:1.4; }

 .it-imageFrame{
     border: 1px solid var(--line);
     border-radius: 12px;
     background: #ffffff;
     overflow: hidden;
     aspect-ratio: 16 / 9;
     display: flex;
     align-items: stretch;
     justify-content: stretch;
 }
 .it-image{
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }
 .it-imageHint{
     margin-top: 10px;
     font-size: 13px;
     color: var(--muted);
     line-height: 1.5;
 }

.think-tabs{
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.think-tabsBar{
    display: inline-flex;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    flex-wrap: wrap;
    align-self: center;
    justify-content: center;
}
.think-tab{
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 9999px;
    cursor: pointer;
    line-height: 1.5;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.think-tab:hover{ 
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}
.think-tab.is-active{
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.think-tab:focus{ outline: none; }
.think-tab:focus-visible{ outline: 2px solid #111827; outline-offset: 2px; }

@media (max-width: 520px) {
    .think-tabs{ justify-content:center; width: 100%; }
    .think-tabsBar{ width: 100%; justify-content: center; gap: 8px; }
    .think-tab{ flex: initial; text-align: center; padding: 10px 20px; width: auto; }
}

.think-tabPanel{ margin-top: 10px; }

.think-tabPanel .it-stack{ margin-top: 12px; }

.think-tabPanel .it-section{ background: none; padding: 0; height: auto; }
.think-tabPanel #thinking-convergence .section-header{ display: none; }
.think-tabPanel #thinking-convergence-image .it-header{ display: none; }
.think-tabPanel .it-section .it-wrap{ max-width: 100%; margin: 0; width: 100%; }

.think-tabPanel #thinking-convergence-image{ background: none; padding: 0; height: auto; }
.think-tabPanel #thinking-convergence-image .it-wrap{ max-width: 100%; margin: 0; width: 100%; }
