/* hangul.dev — terminal-native + Korean typographic engineering */

:root {
    --terminal-dark: #0c0e14;
    --editor-bg: #1a1d27;
    --choseong-cyan: #56d4c8;
    --jungseong-green: #7ec699;
    --jongseong-amber: #e5b567;
    --comment-gray: #5c6370;
    --output-white: #dfe1e8;

    --font-display: "Fira Code", "JetBrains Mono", ui-monospace, monospace;
    --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
    --font-body: "Noto Sans KR", "Inter", system-ui, sans-serif;

    --sidebar-w: 260px;
    --tab-h: 38px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--editor-bg);
    color: var(--output-white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(86, 212, 200, 0.32);
    color: var(--output-white);
}

a {
    color: var(--choseong-cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============ Boot screen ============ */
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--terminal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.6s ease 0.3s, visibility 0.6s ease 0.3s;
}

.boot-screen.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-inner {
    width: min(720px, 100%);
    border: 1px solid rgba(92, 99, 112, 0.3);
    background: #07090f;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(86, 212, 200, 0.05);
    overflow: hidden;
}

.boot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(92, 99, 112, 0.2);
    background: linear-gradient(to bottom, #11141d, #0c0e14);
}

.boot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.boot-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--comment-gray);
    letter-spacing: 0.02em;
}

.boot-log {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    padding: 22px 24px 6px;
    color: var(--output-white);
    min-height: 220px;
    white-space: pre-wrap;
}

.boot-log .log-init { color: var(--comment-gray); }
.boot-log .log-ok   { color: var(--jungseong-green); }
.boot-log .log-tag  { color: var(--choseong-cyan); }
.boot-log .log-warn { color: var(--jongseong-amber); }
.boot-log .jamo.cho  { color: var(--choseong-cyan); }
.boot-log .jamo.jung { color: var(--jungseong-green); }
.boot-log .jamo.jong { color: var(--jongseong-amber); }

.boot-cursor {
    width: 8px;
    height: 16px;
    background: var(--choseong-cyan);
    margin: 4px 24px 22px;
    animation: blink 530ms steps(1) infinite;
    display: inline-block;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============ IDE shell ============ */
.ide {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ide.revealed {
    opacity: 1;
    transform: none;
}

/* Sidebar */
.sidebar {
    background: var(--terminal-dark);
    border-right: 1px solid rgba(92, 99, 112, 0.18);
    color: var(--output-white);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
    overflow-y: auto;
}

.ide.revealed .sidebar {
    transform: none;
    opacity: 1;
}

.sidebar-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(92, 99, 112, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.sidebar-brand {
    color: var(--output-white);
    font-weight: 500;
}

.sidebar-branch {
    color: var(--jungseong-green);
    font-size: 11px;
    background: rgba(126, 198, 153, 0.08);
    border: 1px solid rgba(126, 198, 153, 0.25);
    padding: 1px 8px;
    border-radius: 999px;
}

.filetree {
    padding: 12px 6px;
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
}

.tree-dir {
    margin-bottom: 4px;
}

.tree-dir-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: var(--output-white);
    font-family: var(--font-mono);
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree-dir-toggle:hover {
    background: rgba(86, 212, 200, 0.06);
}

.tree-caret {
    display: inline-block;
    width: 10px;
    color: var(--comment-gray);
    font-size: 9px;
    transition: transform 0.2s ease, color 0.15s ease;
}

.tree-dir.open .tree-caret {
    color: var(--choseong-cyan);
}

.tree-folder-icon {
    font-size: 12px;
    filter: grayscale(0.4);
}

.tree-label {
    color: var(--output-white);
    letter-spacing: 0.02em;
}

.tree-children {
    list-style: none;
    margin: 2px 0 4px 18px;
    padding-left: 8px;
    border-left: 1px dashed rgba(92, 99, 112, 0.32);
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.tree-dir:not(.open) .tree-children {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.tree-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    color: var(--comment-gray);
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tree-file:hover {
    color: var(--output-white);
    background: rgba(86, 212, 200, 0.05);
    text-decoration: none;
}

.tree-file.active {
    color: var(--choseong-cyan);
    background: rgba(86, 212, 200, 0.08);
    border-left-color: var(--choseong-cyan);
}

.tree-icon {
    width: 14px;
    height: 14px;
    color: var(--comment-gray);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.tree-file:hover .tree-icon,
.tree-file.active .tree-icon {
    color: var(--choseong-cyan);
}

.tree-icon.hangul-icon {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    line-height: 14px;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.code-icon {
    font-size: 9px;
}

.sidebar-footer {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(92, 99, 112, 0.18);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--comment-gray);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.status-line.muted {
    color: rgba(92, 99, 112, 0.7);
    font-size: 10px;
    margin-top: 4px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jungseong-green);
    box-shadow: 0 0 6px rgba(126, 198, 153, 0.6);
}

.status-version {
    margin-left: auto;
    color: var(--jongseong-amber);
}

/* Editor (main content) */
.editor {
    background: var(--editor-bg);
    padding: 0 0 80px;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.7s ease 0.25s;
}

.ide.revealed .editor {
    opacity: 1;
}

.panel {
    padding: 0 clamp(20px, 5vw, 56px);
    margin-top: 32px;
    scroll-margin-top: 12px;
}

.panel:first-of-type {
    margin-top: 24px;
}

.tab-bar {
    display: flex;
    align-items: center;
    height: var(--tab-h);
    gap: 14px;
    border-bottom: 1px solid rgba(92, 99, 112, 0.22);
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    position: relative;
}

.tab-bar.flash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--choseong-cyan);
    opacity: 0;
    pointer-events: none;
    animation: tab-flash 500ms ease-out;
}

@keyframes tab-flash {
    0%   { opacity: 0.3; }
    100% { opacity: 0; }
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: var(--tab-h);
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--output-white);
    margin-bottom: -1px;
    margin-top: 6px;
}

.tab.active {
    border-top: 2px solid var(--choseong-cyan);
    padding-top: 0;
}

.tab-icon {
    color: var(--jongseong-amber);
    font-size: 8px;
}

.breadcrumb {
    color: var(--comment-gray);
    font-size: 11px;
    letter-spacing: 0.02em;
    margin-left: auto;
    padding-right: 4px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    color: var(--output-white);
    margin-bottom: 14px;
    line-height: 1.1;
}

.section-lead {
    max-width: 720px;
    color: var(--output-white);
    margin-bottom: 28px;
    font-size: 15px;
}

.fold-rule {
    border: none;
    border-top: 1px dashed rgba(223, 225, 232, 0.2);
    margin: 36px clamp(20px, 5vw, 56px);
}

/* ============ Hero ============ */
.hero-panel {
    margin-top: 24px;
}

.hero-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
    padding-top: 18px;
}

@media (max-width: 980px) {
    .hero-body {
        grid-template-columns: 1fr;
    }
}

.terminal-window {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.28);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 0.7s ease 0.4s, opacity 0.7s ease 0.4s;
}

.ide.revealed .terminal-window {
    transform: none;
    opacity: 1;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(92, 99, 112, 0.2);
    background: linear-gradient(to bottom, #11141d, #0c0e14);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-header .dot:nth-child(1) { background: #ff5f57; }
.terminal-header .dot:nth-child(2) { background: #febc2e; }
.terminal-header .dot:nth-child(3) { background: #28c840; }

.terminal-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--comment-gray);
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 22px 22px 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--output-white);
    min-height: 160px;
}

.terminal-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    line-height: 1.7;
}

.terminal-line.output {
    margin-top: 12px;
}

.prompt {
    color: var(--jungseong-green);
    font-weight: 500;
}

.arrow {
    color: var(--jongseong-amber);
}

.output-text {
    color: var(--output-white);
}

.caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--choseong-cyan);
    vertical-align: -3px;
    animation: blink 530ms steps(1) infinite;
    margin-left: 1px;
}

.hero-text {
    padding: 4px 0;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--output-white);
    margin-bottom: 18px;
}

.title-accent {
    color: var(--choseong-cyan);
}

.hero-tagline {
    color: var(--output-white);
    font-size: 16px;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(92, 99, 112, 0.32);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--output-white);
    background: rgba(12, 14, 20, 0.45);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chip-dot.choseong  { background: var(--choseong-cyan);    box-shadow: 0 0 8px rgba(86, 212, 200, 0.5); }
.chip-dot.jungseong { background: var(--jungseong-green);  box-shadow: 0 0 8px rgba(126, 198, 153, 0.5); }
.chip-dot.jongseong { background: var(--jongseong-amber);  box-shadow: 0 0 8px rgba(229, 181, 103, 0.5); }

/* ============ Jamo classes (universal) ============ */
.jamo {
    font-family: var(--font-mono);
    transition: color 0.2s ease, transform 0.4s cubic-bezier(0.5, 1.6, 0.4, 1);
    display: inline-block;
}

.jamo.cho  { color: var(--choseong-cyan); }
.jamo.jung { color: var(--jungseong-green); }
.jamo.jong { color: var(--jongseong-amber); }

/* ============ Code blocks ============ */
.code-block {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(92, 99, 112, 0.22);
    background: linear-gradient(to bottom, #11141d, #0c0e14);
    font-family: var(--font-mono);
    font-size: 11px;
}

.code-lang {
    color: var(--choseong-cyan);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.code-title {
    color: var(--comment-gray);
}

.code-body {
    padding: 18px 22px;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--output-white);
}

.code-body .kw  { color: var(--choseong-cyan); }
.code-body .fn  { color: var(--jungseong-green); }
.code-body .str { color: var(--jongseong-amber); }
.code-body .num { color: var(--jongseong-amber); }
.code-body .cm  { color: var(--comment-gray); font-style: italic; }
.code-body .ty  { color: var(--jungseong-green); }
.code-body .prompt { color: var(--jungseong-green); }

.inline-code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--jongseong-amber);
    background: rgba(229, 181, 103, 0.08);
    border: 1px solid rgba(229, 181, 103, 0.22);
    padding: 1px 6px;
    border-radius: 3px;
}

/* ============ Decompose interactive ============ */
.syllable-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.syllable-card {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.28);
    border-radius: 8px;
    padding: 22px 16px 14px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    position: relative;
}

.syllable-card:hover {
    border-color: var(--choseong-cyan);
    transform: translateY(-2px);
}

.syllable-card.decomposed {
    background: rgba(12, 14, 20, 0.7);
}

.composed {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    gap: 0;
    transition: gap 0.4s cubic-bezier(0.5, 1.6, 0.4, 1), letter-spacing 0.4s ease;
    margin-bottom: 8px;
}

.syllable-card.decomposed .composed {
    gap: 14px;
    letter-spacing: 0;
}

.card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--comment-gray);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* SVG syllable diagram */
.diagram-block {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-radius: 8px;
    overflow: hidden;
}

.diagram-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.syllable-diagram {
    width: 100%;
    max-width: 380px;
    height: auto;
    font-family: var(--font-display);
}

.diagram-jamo {
    font-size: 44px;
    font-weight: 700;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.5, 1.6, 0.4, 1);
}

.cho-target  { fill: var(--choseong-cyan); }
.jung-target { fill: var(--jungseong-green); }
.jong-target { fill: var(--jongseong-amber); }

.diagram-composed {
    font-size: 80px;
    font-weight: 700;
    fill: var(--output-white);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.syllable-diagram.composed-state .diagram-jamo {
    opacity: 0;
}

.syllable-diagram.composed-state .diagram-composed {
    opacity: 1;
}

.diagram-label {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--comment-gray);
    letter-spacing: 0.05em;
}

.diagram-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--choseong-cyan);
    color: var(--choseong-cyan);
}

.btn.ghost:hover {
    background: rgba(86, 212, 200, 0.08);
}

.diag-status {
    color: var(--comment-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

/* ============ API grid ============ */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.api-card {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-radius: 8px;
    padding: 18px 18px 20px;
}

.api-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.cho-tag  { color: var(--choseong-cyan);    background: rgba(86, 212, 200, 0.06); }
.jung-tag { color: var(--jungseong-green);  background: rgba(126, 198, 153, 0.06); }
.jong-tag { color: var(--jongseong-amber);  background: rgba(229, 181, 103, 0.06); }

.api-card-count {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--output-white);
    line-height: 1;
    margin-bottom: 8px;
}

.api-card-list {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--output-white);
    letter-spacing: 0.06em;
    line-height: 1.7;
}

.api-card:nth-child(1) .api-card-list { color: var(--choseong-cyan); }
.api-card:nth-child(2) .api-card-list { color: var(--jungseong-green); }
.api-card:nth-child(3) .api-card-list { color: var(--jongseong-amber); }

/* ============ Syllable list (linguistics) ============ */
.syllable-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.syllable-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 24px minmax(80px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-radius: 6px;
    font-family: var(--font-mono);
}

.syl-code {
    font-size: 14px;
    color: var(--output-white);
}

.syl-arrow {
    color: var(--jongseong-amber);
    text-align: center;
    font-size: 16px;
}

.syl-result {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--output-white);
}

.syl-roman {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--comment-gray);
    text-align: right;
}

@media (max-width: 600px) {
    .syllable-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }
    .syl-arrow { display: none; }
}

/* ============ Playground ============ */
.playground {
    background: var(--terminal-dark);
    border: 1px solid rgba(92, 99, 112, 0.22);
    border-radius: 8px;
    padding: 22px;
}

.playground-input {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(92, 99, 112, 0.32);
}

.pg-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--choseong-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.pg-text {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(92, 99, 112, 0.28);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--output-white);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pg-text:focus {
    border-color: var(--choseong-cyan);
    background: rgba(86, 212, 200, 0.04);
}

.playground-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: baseline;
}

.pg-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--comment-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pg-result {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--output-white);
    line-height: 1.6;
    word-break: break-all;
}

.pg-result.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

@media (max-width: 540px) {
    .pg-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ============ Footer ============ */
.editor-footer {
    margin-top: 56px;
    padding: 22px clamp(20px, 5vw, 56px);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--comment-gray);
    border-top: 1px dashed rgba(223, 225, 232, 0.18);
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
    :root { --sidebar-w: 100%; }
    .ide {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        height: auto;
        max-height: 280px;
    }
}

/* Scrollbar polish */
.sidebar::-webkit-scrollbar,
.code-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.code-body::-webkit-scrollbar-thumb {
    background: rgba(92, 99, 112, 0.4);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track,
.code-body::-webkit-scrollbar-track {
    background: transparent;
}
