:root {
    --bg: #f5f3ee;
    --sidebar: #1c1917;
    --panel: #ffffff;
    --ink: #1c1917;
    --ink2: #57534e;
    --ink3: #a8a29e;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --green-border: #bbf7d0;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --border: #e7e5e0;
    --border-dark: #292524;
    --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .1);
    --serif: 'Lora', Georgia, serif;
    --mono: 'DM Mono', monospace;
    --sans: 'Noto Sans SC', sans-serif;
    --sidebar-w: 72px;
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    display: flex;
}

/* SIDEBAR */
aside {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 24px;
    z-index: 10;
}

.s-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #16a34a, #4ade80);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
    flex-shrink: 0;
    text-decoration: none;
}

.s-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 10px;
}

.s-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 6px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #78716c;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
}

.s-btn:hover {
    background: rgba(255, 255, 255, .07);
    color: #d6d3d1;
}

.s-btn.active {
    background: rgba(255, 255, 255, .11);
    color: #fafaf9;
}

.s-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.s-btn-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .04em;
    line-height: 1;
    text-align: center;
}

.s-divider {
    width: 28px;
    height: 1px;
    background: var(--border-dark);
    margin: 8px 0;
}

/* TOPBAR */
main {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 52px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 2px;
    flex-shrink: 0;
    overflow-x: auto;
}

.t-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--ink3);
    font-family: var(--sans);
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    text-decoration: none;
}

.t-btn:hover {
    background: var(--bg);
    color: var(--ink2);
}

.t-btn.active {
    background: var(--ink);
    color: #fff;
}

.t-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
    flex-shrink: 0;
}

.t-btn.active .t-dot {
    opacity: 1;
    background: #4ade80;
}

/* 访客徽章相关样式已移除 */

/* PAGE CONTENT */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 32px 40px;
}

.page-content::-webkit-scrollbar {
    width: 5px;
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.panel-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-title {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -.01em;
}

.panel-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink3);
}

/* SHARED COMPONENTS */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
}

.card-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ttag {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--bg);
    color: var(--ink3);
    padding: 3px 8px;
    border-radius: 4px;
}

.ttag.g {
    background: var(--green-bg);
    color: var(--green);
}

/* PROFILE PAGE */
.profile-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.p-intro {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 30px;
}

.p-name {
    font-family: var(--serif);
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 3px;
}

.p-name-en {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ink3);
    margin-bottom: 14px;
}

.p-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pu 2s infinite;
}

@keyframes pu {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .3;
        transform: scale(.6)
    }
}

.p-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.6;
    border-left: 3px solid var(--green);
    padding-left: 12px;
    margin-bottom: 12px;
}

.p-bio {
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.85;
    margin-bottom: 18px;
}

.p-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.p-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink2);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 5px 11px;
    border-radius: 7px;
    text-decoration: none;
    transition: all .15s;
}

.p-chip:hover {
    border-color: var(--green);
    color: var(--green);
}

.p-chip.hi {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green);
}

.edu-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 30px;
}

.edu-item+.edu-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.edu-school {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.edu-dept {
    font-size: 12px;
    color: var(--ink2);
    margin-bottom: 3px;
}

.edu-degree-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    background: var(--ink);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.edu-degree-badge.undergrad {
    background: var(--bg);
    color: var(--ink3);
    border: 1px solid var(--border);
}

.edu-date {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink3);
    margin-bottom: 7px;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

.internship-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.internship-card-header {
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.internship-card-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.internship-card-sub {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink3);
}

.tl-item {
    border-bottom: 1px solid var(--border);
}

.tl-item:last-child {
    border-bottom: none;
}

.tl-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.tl-trigger:hover {
    background: rgba(0, 0, 0, .015);
}

.tl-trigger-inner {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
}

.tl-dot-wrap {
    display: flex;
    align-items: flex-start;
    width: 14px;
    flex-shrink: 0;
    padding-top: 4px;
}

.tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d6d3d1;
    border: 2px solid var(--bg);
    flex-shrink: 0;
    margin-top: 4px;
}

.tl-dot.current {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.tl-info {
    flex: 1;
    min-width: 0;
}

.tl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
    gap: 16px;
}

.tl-co {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.tl-date {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink2);
    white-space: nowrap;
    flex-shrink: 0;
}

.tl-role {
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 6px;
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tl-metrics {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.metric-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--ink);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 80px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.mc-num {
    font-family: var(--serif);
    font-size: 26px;
    color: #fafaf9;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -.02em;
}

.mc-lbl {
    font-family: var(--mono);
    font-size: 9px;
    color: #78716c;
    letter-spacing: .04em;
    text-align: center;
    line-height: 1.4;
}

.metric-chip.red .mc-num {
    color: #f87171;
}

.metric-chip.amber .mc-num {
    color: #fbbf24;
}

.metric-chip.green .mc-num {
    color: #4ade80;
}

.tl-chevron {
    font-size: 11px;
    color: var(--ink3);
    padding: 14px 20px 14px 8px;
    flex-shrink: 0;
    transition: transform .25s;
    align-self: center;
}

.tl-item.open .tl-chevron {
    transform: rotate(180deg);
}

.tl-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.tl-item.open .tl-expand {
    max-height: 1400px;
}

.tl-expand-inner {
    padding: 0 24px 18px 54px;
}

.expand-section {
    margin-bottom: 12px;
}

.expand-section:last-child {
    margin-bottom: 0;
}

.expand-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expand-title::before {
    content: '';
    display: block;
    width: 12px;
    height: 1px;
    background: var(--green);
}

.expand-bullets {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.7;
}

.eb::before {
    content: '↳';
    font-family: var(--mono);
    color: var(--ink3);
    flex-shrink: 0;
}

.eb em {
    font-style: normal;
    color: var(--ink);
    font-weight: 600;
}

.profile-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.skill-item {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
}

.skill-cat {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--ink3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.skill-val {
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.5;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 11px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.5;
}

.award-icon {
    font-size: 13px;
    flex-shrink: 0;
}

/* PORTFOLIO PAGE */
.pf-filter {
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
}

.pf-chip {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--ink3);
    cursor: pointer;
    transition: all .15s;
}

.pf-chip.on,
.pf-chip:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.pc {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all .2s;
    cursor: pointer;
}

.pc:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.pc-thumb {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
}

.g1 {
    background: linear-gradient(135deg, #dcfce7, #a7f3d0)
}

.g2 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe)
}

.g3 {
    background: linear-gradient(135deg, #fef3c7, #fde68a)
}

.g4 {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8)
}

.g5 {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe)
}

.g6 {
    background: linear-gradient(135deg, #e7e5e0, #d6d3d1)
}

.pc-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.bt {
    background: rgba(22, 163, 74, .12);
    color: #16a34a
}

.bd {
    background: rgba(217, 119, 6, .12);
    color: #d97706
}

.bp {
    background: rgba(124, 58, 237, .12);
    color: #7c3aed
}

.pc-body {
    padding: 14px 16px 16px;
}

.pc-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}

.pc-desc {
    font-size: 11px;
    color: var(--ink3);
    line-height: 1.6;
    margin-bottom: 10px;
}

.pc-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pt {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--bg);
    color: var(--ink3);
    padding: 2px 6px;
    border-radius: 3px;
}

/* THOUGHTS PAGE */
.thoughts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
}

.tcard:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.tcard.featured {
    background: var(--ink);
    color: #fafaf9;
    border-color: var(--ink);
}

.tcard-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.tcard.featured .tcard-ico {
    background: rgba(255, 255, 255, .09);
}

.tcard-body {
    flex: 1;
    min-width: 0;
}

.tcard-cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 3px;
}

.tcard.featured .tcard-cat {
    color: rgba(250, 250, 249, .45);
}

.tcard-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 3px;
}

.tcard-snip {
    font-size: 12px;
    color: var(--ink3);
    line-height: 1.55;
}

.tcard.featured .tcard-snip {
    color: rgba(250, 250, 249, .55);
}

.tcard-arrow {
    font-size: 16px;
    color: var(--ink3);
    flex-shrink: 0;
    transition: transform .15s;
}

.tcard:hover .tcard-arrow {
    transform: translate(3px, -3px);
}

.tcard.featured .tcard-arrow {
    color: rgba(250, 250, 249, .4);
}

/* TWIN PAGE */
.twin-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
}

.twin-h {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.twin-p {
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.85;
    margin-bottom: 20px;
}

.rag-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rag-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--ink2);
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.rag-row::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.chat-shell {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: calc(100vh - 130px);
}

.chat-hd {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.chat-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #4ade80);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.chat-nm {
    font-size: 13px;
    font-weight: 700;
}

.chat-st {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green);
}

.chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.chat-feed::-webkit-scrollbar {
    width: 3px
}

.chat-feed::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px
}

.bbl {
    max-width: 85%;
    font-size: 12.5px;
    line-height: 1.65;
    padding: 9px 12px;
    border-radius: 10px;
}

.bbl.bot {
    background: var(--bg);
    color: var(--ink);
    border-bottom-left-radius: 3px;
    align-self: flex-start;
}

.bbl.usr {
    background: var(--ink);
    color: #fafaf9;
    border-bottom-right-radius: 3px;
    align-self: flex-end;
}

.tdots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 3px 0;
}

.tdots span {
    width: 5px;
    height: 5px;
    background: var(--ink3);
    border-radius: 50%;
    animation: td 1.2s infinite;
}

.tdots span:nth-child(2) {
    animation-delay: .2s
}

.tdots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes td {

    0%,
    60%,
    100% {
        transform: none
    }

    30% {
        transform: translateY(-5px)
    }
}

.presets {
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.ps-lbl {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--ink3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ps {
    font-size: 12px;
    color: var(--ink2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 11px;
    text-align: left;
    cursor: pointer;
    font-family: var(--sans);
    transition: all .15s;
    width: 100%;
}

.ps:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-bg);
}

.chat-bot {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.ci {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 12px;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color .15s;
}

.ci:focus {
    border-color: var(--green);
    background: #fff;
}

.csend {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
}

.csend:hover {
    opacity: .85;
}

/* FAILURES PAGE */
.fail-note {
    padding: 14px 18px;
    background: var(--amber-bg);
    border: 1px solid rgba(217, 119, 6, .2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.7;
    margin-bottom: 18px;
}

.fail-note strong {
    color: var(--amber);
}

.fail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fc {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.fc-top {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
}

.f-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--amber);
    background: var(--amber-bg);
    border: 1px solid rgba(217, 119, 6, .2);
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 11px;
}

.f-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.f-idea {
    font-size: 12px;
    color: var(--ink3);
    line-height: 1.7;
}

.fc-bot {
    padding: 16px 22px 20px;
    background: var(--bg);
}

.fr-lbl {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--amber);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fr-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fr-item {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.65;
}

.fr-item::before {
    content: '↳';
    font-family: var(--mono);
    color: var(--amber);
    flex-shrink: 0;
}

.f-lesson {
    margin-top: 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--green);
    font-size: 12px;
    color: var(--ink2);
    font-style: italic;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.page-content>* {
    animation: fadeIn .22s ease both;
}

.page-content>*:nth-child(2) {
    animation-delay: .04s
}

.page-content>*:nth-child(3) {
    animation-delay: .08s
}

.page-content>*:nth-child(4) {
    animation-delay: .12s
}

/* PROJECT DETAIL LAYOUT */
.project-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    min-height: calc(100vh - 52px - 64px);
}

.project-intro-rail {
    position: sticky;
    top: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - 52px - 64px - 32px);
    overflow-y: auto;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.project-title {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
}

.project-tagline {
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.7;
    border-left: 3px solid var(--green);
    padding-left: 12px;
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-section-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink3);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 500;
}

.project-section-content {
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.75;
}

.project-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-feature-item {
    background: var(--bg);
    border-radius: 8px;
    padding: 11px 13px;
    border: 1px solid var(--border);
}

.project-feature-title {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.project-feature-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(22, 163, 74, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.project-feature-desc {
    font-size: 11px;
    color: var(--ink3);
    line-height: 1.65;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.project-tech-tag {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--ink3);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 3px;
    padding: 2px 7px;
    background: var(--bg);
}

.project-workspace {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    min-height: 600px;
}

/* Responsive: narrow screens */
@media (max-width: 1100px) {
    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-intro-rail {
        position: static;
        max-height: none;
    }
}