:root {
    --safe-bottom: 0px;
    --sidebar-width: 260px;
}

@supports (padding: env(safe-area-inset-bottom)) {
    :root {
        --safe-bottom: env(safe-area-inset-bottom);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 36%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.035), transparent 34%),
                #0b0b0d;
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

::selection {
    background: #3f3f46;
    color: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0b0b0d; }
::-webkit-scrollbar-thumb { background: #28282e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.app-container {
    display: flex;
    min-height: 100dvh;
    height: 100dvh;
    position: relative;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #151518 0%, #0f0f12 100%);
    border-right: 1px solid #28282e;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid #28282e;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 24px 12px;
}

.nav-section-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #71717a;
    font-weight: 600;
    padding: 12px 12px 6px;
}

.nav-item-link {
    text-decoration: none;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 2px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
}

.nav-item:hover {
    color: #f5f5f5;
    background: #1d1d23;
}

.nav-item.active {
    color: #f5f5f5;
    background: #1f1f26;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 0 4px 4px 0;
    background: #f5f5f5;
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.76;
    flex-shrink: 0;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.close-sidebar-mobile {
    display: none;
    position: absolute;
    right: 20px;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    backdrop-filter: blur(10px);
    background: rgba(11, 11, 13, 0.88);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    padding: 4px;
}

.workspace-scroll {
    padding-bottom: max(20px, var(--safe-bottom));
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.app-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid #28282e;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.95) 0%, rgba(13, 13, 17, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.app-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kicker {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a8a93;
    font-family: 'JetBrains Mono', monospace;
}

.glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #34343d;
    border-radius: 999px;
    background: rgba(15, 15, 19, 0.76);
    padding: 6px 10px;
    color: #d4d4db;
    font-size: 11px;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.glass-chip strong {
    color: #fff;
    font-weight: 600;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 56px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: linear-gradient(180deg, rgba(19, 19, 24, 0.98) 0%, rgba(14, 14, 18, 1) 100%);
    color: #f5f5f5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.header-action-btn:hover {
    border-color: #71717a;
    background: linear-gradient(180deg, rgba(23, 23, 29, 1) 0%, rgba(16, 16, 21, 1) 100%);
    color: #ffffff;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.panel-link:hover {
    color: #ffffff;
}

.label-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #34343d;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d4d4db;
    background: #141419;
}

.label-pill-accent {
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
    background: rgba(20, 83, 45, 0.15);
}

.label-pill-blue {
    border-color: rgba(96, 165, 250, 0.26);
    color: #bfdbfe;
    background: rgba(30, 58, 138, 0.16);
}

.label-pill-red {
    border-color: rgba(239, 68, 68, 0.26);
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.15);
}

.label-pill-amber {
    border-color: rgba(245, 158, 11, 0.26);
    color: #fcd34d;
    background: rgba(120, 53, 15, 0.16);
}

.metric-tile {
    border: 1px solid #2b2b32;
    border-radius: 16px;
    background: rgba(11, 11, 15, 0.72);
    padding: 15px;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    line-height: 1;
    color: #f5f5f5;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.metric-label {
    margin-top: 10px;
    color: #a1a1aa;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.section-note {
    color: #8f919c;
    font-size: 13px;
    line-height: 1.65;
}

.edu-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 18px;
    align-items: start;
}

.edu-title {
    color: #f5f5f5;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 600;
    max-width: 18ch;
}

.edu-copy {
    margin-top: 10px;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.68;
    max-width: 64ch;
}

.edu-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.edu-metric-card {
    border: 1px solid #2b2b32;
    border-radius: 14px;
    background: rgba(11, 11, 15, 0.72);
    padding: 14px;
}

.edu-metric-value {
    color: #f5f5f5;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: 'JetBrains Mono', monospace;
}

.edu-metric-label {
    margin-top: 8px;
    color: #d4d4db;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 600;
}

.edu-metric-note {
    margin-top: 4px;
    color: #8f919c;
    font-size: 11px;
    line-height: 1.5;
}

.featured-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-meta,
.card-meta,
.article-kicker {
    color: #8a8a93;
    font-size: 10px;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.featured-title,
.card-title {
    margin: 10px 0 0;
    color: #f5f5f5;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.featured-copy,
.card-copy {
    margin: 10px 0 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.7;
}

.featured-link,
.card-link {
    margin-top: 14px;
    color: #f5f5f5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.path-card {
    padding: 18px;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.path-card:hover {
    border-color: #3a3a44;
    background: rgba(18, 18, 23, 0.88);
    transform: translateY(-1px);
}

.path-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5f5f5;
    font-size: 12px;
    font-weight: 600;
}

.path-card-label::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
}

.path-card.tone-dasar-saham .path-card-label::before { background: #22c55e; }
.path-card.tone-trading-praktis .path-card-label::before { background: #60a5fa; }
.path-card.tone-value-investing .path-card-label::before { background: #f59e0b; }
.path-card.tone-manajemen-risiko .path-card-label::before { background: #ef4444; }

.path-card-title {
    margin: 12px 0 0;
    color: #f5f5f5;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.path-card-copy {
    margin: 10px 0 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.7;
}

.path-card-foot {
    margin-top: 14px;
    color: #d4d4db;
    font-size: 12px;
    font-weight: 600;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.library-card {
    padding: 18px;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.library-card:hover {
    border-color: #3a3a44;
    background: rgba(18, 18, 23, 0.88);
    transform: translateY(-1px);
}

.article-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.article-page {
    display: grid;
    gap: 20px;
}

.article-hero {
    padding: 26px;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.09), transparent 28%),
                radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.06), transparent 32%),
                linear-gradient(180deg, rgba(20, 20, 24, 0.95) 0%, rgba(13, 13, 17, 0.98) 100%);
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.article-hero-main {
    min-width: 0;
}

.article-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pill {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #34343d;
    border-radius: 999px;
    background: rgba(14, 14, 18, 0.76);
    color: #d4d4db;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.article-display-title {
    margin: 18px 0 0;
    color: #f5f5f5;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-weight: 600;
    max-width: 13ch;
    font-family: 'Newsreader', Georgia, serif;
    text-wrap: balance;
}

.article-display-summary {
    margin: 18px 0 0;
    color: #c9d0db;
    font-size: 18px;
    line-height: 1.85;
    max-width: 58ch;
    text-wrap: pretty;
}

.article-hero-side,
.article-side {
    display: grid;
    gap: 16px;
    align-items: start;
}

.article-side {
    position: sticky;
    top: 84px;
}

.article-side-card {
    padding: 18px;
}

.article-side-title {
    color: #f5f5f5;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.article-side-note {
    margin-top: 8px;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.7;
}

.article-side-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.article-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #2b2b32;
    border-radius: 12px;
    background: rgba(12, 12, 16, 0.58);
    padding: 10px 12px;
}

.article-side-label {
    color: #8f919c;
    font-size: 11px;
    line-height: 1.4;
}

.article-side-value {
    color: #f5f5f5;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.article-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.article-tools-compact {
    margin-top: 14px;
}

.article-audio-note {
    margin-top: 10px;
    color: #8f919c;
    font-size: 12px;
    line-height: 1.6;
}

.audio-btn,
.ghost-btn,
.solid-btn {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.audio-btn {
    border: 1px solid #4b5563;
    background: linear-gradient(180deg, rgba(19, 19, 24, 0.98) 0%, rgba(14, 14, 18, 1) 100%);
    color: #f5f5f5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.audio-btn:hover,
.solid-btn:hover,
.ghost-btn:hover {
    transform: translateY(-1px);
    border-color: #71717a;
}

.audio-btn.active { background: linear-gradient(180deg, rgba(23, 23, 29, 1) 0%, rgba(16, 16, 21, 1) 100%); border-color: #71717a; }

.audio-btn:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    border-color: #34343d;
    transform: none;
}

.audio-btn:disabled:hover {
    border-color: #34343d;
    transform: none;
}

.audio-icon {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.audio-btn.active .audio-icon {
    width: 10px;
    height: 10px;
    border: 0;
    position: relative;
}

.audio-btn.active .audio-icon::before,
.audio-btn.active .audio-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 10px;
    background: currentColor;
    border-radius: 2px;
}

.audio-btn.active .audio-icon::before { left: 1px; }
.audio-btn.active .audio-icon::after { right: 1px; }

.ghost-btn {
    border: 1px solid #4b5563;
    background: linear-gradient(180deg, rgba(19, 19, 24, 0.98) 0%, rgba(14, 14, 18, 1) 100%);
    color: #f5f5f5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.solid-btn {
    border: 1px solid #4b5563;
    background: linear-gradient(180deg, rgba(19, 19, 24, 0.98) 0%, rgba(14, 14, 18, 1) 100%);
    color: #f5f5f5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}


.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.article-visual-panel {
    padding: 22px 24px;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 26%),
                linear-gradient(180deg, rgba(20, 20, 24, 0.95) 0%, rgba(13, 13, 17, 0.98) 100%);
}

.article-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 18px;
    align-items: start;
}

.article-visual-main {
    min-width: 0;
}

.article-visual-title {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 600;
    font-family: 'Newsreader', Georgia, serif;
    max-width: 18ch;
    text-wrap: balance;
}

.article-visual-copy {
    margin: 14px 0 0;
    color: #c4ccd8;
    font-size: 15px;
    line-height: 1.8;
    max-width: 54ch;
}

.article-formula-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-formula-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #34343d;
    background: rgba(15, 15, 19, 0.76);
    color: #eef2f7;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.article-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.article-flow-card {
    position: relative;
    border: 1px solid #2b2b32;
    border-radius: 16px;
    background: rgba(11, 11, 15, 0.62);
    padding: 16px;
    overflow: hidden;
}

.article-flow-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.article-flow-index {
    color: #8a8a93;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.article-flow-title {
    margin: 12px 0 0;
    color: #f5f5f5;
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.article-flow-copy {
    margin: 10px 0 0;
    color: #aeb8c6;
    font-size: 13px;
    line-height: 1.7;
}

.article-contrast-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-contrast-card {
    border: 1px solid #2b2b32;
    border-radius: 16px;
    padding: 16px;
    background: rgba(12, 12, 16, 0.62);
}

.article-contrast-card-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(120, 53, 15, 0.12);
}

.article-contrast-card-positive {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(20, 83, 45, 0.12);
}

.article-contrast-title {
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.article-contrast-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.article-contrast-list li {
    position: relative;
    padding-left: 16px;
    color: #c8cfda;
    font-size: 13px;
    line-height: 1.7;
}

.article-contrast-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.7;
}

.article-reading-panel {
    padding: 26px 28px;
}

.article-reading-head {
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-reading-title {
    color: #f5f5f5;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    font-weight: 600;
    max-width: 24ch;
    font-family: 'Newsreader', Georgia, serif;
}

.article-toc-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.article-toc-link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid #2b2b32;
    border-radius: 12px;
    background: rgba(12, 12, 16, 0.58);
    padding: 10px 12px;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.article-toc-link:hover {
    border-color: #3c3c46;
    background: rgba(18, 18, 23, 0.82);
    transform: translateY(-1px);
}

.article-toc-link.active {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(16, 24, 39, 0.78);
}

.article-toc-link.active .article-toc-index {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 58, 138, 0.18);
    color: #dbeafe;
}

.article-toc-link.active .article-toc-label {
    color: #ffffff;
}

.article-toc-index {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #32323a;
    background: #111116;
    color: #f5f5f5;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-toc-label {
    color: #d4d4db;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.article-side-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-prose {
    display: grid;
    gap: 0;
}

.chapter {
    position: relative;
    padding: 28px 0 28px 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-margin-top: 104px;
}

.chapter + .chapter {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 2px;
    border-radius: 0 999px 999px 0;
    background: #22c55e;
}

.chapter.tone-dasar-saham::before { background: #22c55e; }
.chapter.tone-trading-praktis::before { background: #60a5fa; }
.chapter.tone-value-investing::before { background: #f59e0b; }
.chapter.tone-manajemen-risiko::before { background: #ef4444; }

.chapter-label {
    color: #8a8a93;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chapter-progress {
    color: #71717a;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.14em;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

.chapter-title {
    margin: 12px 0 0;
    color: #f5f5f5;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
    max-width: 20ch;
    font-family: 'Newsreader', Georgia, serif;
    text-wrap: balance;
}

.chapter-copy {
    margin: 16px 0 0;
    color: #c8cfda;
    font-size: 16px;
    line-height: 1.95;
    max-width: 68ch;
    display: grid;
    gap: 16px;
}

.chapter-copy p {
    margin: 0;
}

.chapter-copy .chapter-lead {
    color: #eef2f7;
    font-size: 18px;
    line-height: 1.86;
    max-width: 58ch;
    text-wrap: pretty;
}

.article-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.article-support-grid > :only-child {
    grid-column: 1 / -1;
}

.glossary,
.quiz-card,
.callout,
.empty-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #28282e;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.95) 0%, rgba(13, 13, 17, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 34px rgba(0, 0, 0, 0.22);
    margin-top: 24px;
    padding: 22px;
}

.glossary::before,
.quiz-card::before,
.callout::before,
.empty-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.glossary-title,
.quiz-title,
.callout-title,
.empty-title {
    margin: 10px 0 0;
    color: #f5f5f5;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 600;
    font-family: 'Newsreader', Georgia, serif;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.glossary-item {
    border: 1px solid #2b2b32;
    border-radius: 14px;
    background: rgba(11, 11, 15, 0.72);
    padding: 16px;
}

.glossary-term {
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
}

.glossary-meaning {
    margin-top: 6px;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.7;
}

.quiz-copy,
.empty-copy,
.callout-copy {
    margin: 12px 0 0;
    color: #b8c2d0;
    font-size: 14px;
    line-height: 1.78;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.quiz-option {
    min-height: 74px;
    border: 1px solid #28282e;
    border-radius: 14px;
    background: rgba(12, 12, 16, 0.76);
    color: #d4d4db;
    padding: 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.quiz-option:hover {
    border-color: #3a3a44;
    background: rgba(18, 18, 23, 0.88);
    transform: translateY(-1px);
}

.quiz-option.correct { border-color: rgba(34,197,94,0.52); background: rgba(34,197,94,0.10); }
.quiz-option.wrong { border-color: rgba(239,68,68,0.52); background: rgba(239,68,68,0.10); }

.quiz-letter {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #28282e;
    background: #111116;
    color: #f5f5f5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
}

.quiz-option.correct .quiz-letter { background: #22c55e; border-color: #22c55e; color: #04110c; }
.quiz-option.wrong .quiz-letter { background: #ef4444; border-color: #ef4444; color: #1a0606; }

.quiz-text { color: #d4d4db; font-size: 14px; line-height: 1.58; font-weight: 500; }

.feedback {
    margin-top: 18px;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
}

.feedback.ok { border: 1px solid rgba(34,197,94,0.32); background: rgba(34,197,94,0.10); }
.feedback.no { border: 1px solid rgba(239,68,68,0.32); background: rgba(239,68,68,0.10); }

.feedback-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.feedback.ok .feedback-icon { background: rgba(34,197,94,0.18); color: #86efac; }
.feedback.no .feedback-icon { background: rgba(239,68,68,0.18); color: #ffaaaa; }

.feedback-title {
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
}

.feedback-copy {
    margin-top: 5px;
    color: #c2ccda;
    font-size: 13px;
    line-height: 1.7;
}

.article-footer {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.article-footer-nav {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edu-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 16px;
}

.edu-section-title {
    color: #f5f5f5;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.edu-board-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 16px;
    align-items: start;
}

.edu-side-grid {
    display: grid;
    gap: 16px;
}

.edu-foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 16px;
    align-items: start;
}

.edu-action-stack {
    display: grid;
    gap: 8px;
}

.edu-action-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #2c2c33;
    border-radius: 14px;
    background: rgba(12, 12, 16, 0.76);
    padding: 12px 13px;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.edu-action-row:hover {
    border-color: #3c3c46;
    background: rgba(18, 18, 22, 0.9);
    transform: translateY(-1px);
}

.edu-action-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #28282e;
    border-radius: 10px;
    background: #111116;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f5;
}

.edu-action-copy {
    min-width: 0;
}

.edu-action-title {
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.edu-action-note {
    margin-top: 3px;
    color: #8f919c;
    font-size: 11px;
    line-height: 1.45;
}

.edu-action-arrow {
    color: #8f919c;
}

.edu-system-list {
    display: grid;
    gap: 8px;
}

.edu-system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #2b2b32;
    border-radius: 12px;
    background: rgba(12, 12, 16, 0.58);
    padding: 10px 12px;
}

.edu-system-label {
    color: #8f919c;
    font-size: 11px;
    line-height: 1.4;
}

.edu-system-value {
    color: #f5f5f5;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.edu-home-footer {
    padding: 18px 0 36px;
    color: #71717a;
    font-size: 12px;
    line-height: 1.6;
}

.edu-home-footer a:hover {
    color: #fff;
}

.dock-shell {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid #28282e;
    border-radius: 22px;
    background: #111114;
    padding: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.dock-link {
    border-radius: 16px;
    padding: 9px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dock-link:hover,
.dock-link.active {
    background: #17171c;
    color: #fff;
}

.mobile-dock {
    display: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1180px) {
    .edu-hero-grid,
    .edu-board-grid,
    .edu-foot-grid,
    .article-hero-grid,
    .article-layout,
    .article-support-grid,
    .article-visual-grid,
    .article-contrast-grid {
        grid-template-columns: 1fr;
    }

    .article-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .sidebar {
        left: -300px;
        width: 280px;
        z-index: 100;
    }

    .sidebar.open {
        left: 0;
    }

    .close-sidebar-mobile {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .workspace-scroll {
        padding-bottom: calc(92px + var(--safe-bottom));
    }

    .edu-title {
        font-size: 24px;
        max-width: none;
    }

    .edu-metric-grid {
        grid-template-columns: 1fr;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .article-flow-grid {
        grid-template-columns: 1fr;
    }

    .app-panel {
        border-radius: 20px;
    }

    .article-hero,
    .article-reading-panel,
    .article-side-card,
    .glossary,
    .quiz-card,
    .empty-card {
        padding: 20px;
    }

    .chapter {
        padding: 22px 0 22px 22px;
    }

    .edu-action-row {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .edu-action-arrow {
        display: none;
    }

    .edu-action-icon {
        width: 36px;
        height: 36px;
    }

    .edu-system-value {
        text-align: left;
    }

    .article-tools,
    .article-footer,
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .audio-btn,
    .ghost-btn,
    .solid-btn {
        width: 100%;
    }

    .article-display-title {
        max-width: none;
        font-size: 38px;
    }

    .article-display-summary {
        font-size: 16px;
    }

    .article-reading-title {
        max-width: none;
        font-size: 22px;
    }

    .chapter-title {
        font-size: 20px;
        max-width: none;
    }

    .chapter-copy {
        font-size: 15px;
    }

    .chapter-copy .chapter-lead {
        font-size: 16px;
    }

    .mobile-dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        padding: 10px 10px calc(10px + var(--safe-bottom));
        background: rgba(11, 11, 13, 0.82);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(40, 40, 46, 0.72);
    }
}
