/* ==========================================================================
   PONY CHOEGO (포니최고) — COSMIC UNIVERSE DIGITAL ARCHIVE DESIGN SYSTEM
   Academic Coursework & 3D Computational Sculpture Portfolio
   ========================================================================== */

:root {
    --vh: 1vh;
    --site-padding-x: 4vw;
    --site-padding-y: 3vw;

    /* Deep Space Cosmic Palette */
    --color-black: #030208;
    --color-black-deep: #020105;
    --color-black-surface: #0a0716;
    --color-black-card: #0e0b1f;
    --color-black-elevated: #16122e;
    --color-white: #f5f5f7;
    --color-white-muted: #b4b4c7;
    --color-white-subtle: #797994;
    --color-white-transparent: rgba(245, 245, 247, 0);

    /* Cosmic Accents: Amber Starlight, Celestial Cyan, Nebula Violet */
    --color-orange: #ff5c00;
    --color-orange-bright: #ff7824;
    --color-orange-glow: rgba(255, 92, 0, 0.45);
    --color-cyan: #00e5ff;
    --color-cyan-glow: rgba(0, 229, 255, 0.35);
    --color-violet: #a855f7;
    --color-gold: #f5a535;

    /* Academic Typography */
    --display-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    --body-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    --serif-font: 'Noto Serif KR', Georgia, serif;
    --mono-font: 'DM Mono', 'Space Mono', monospace;

    /* Type Scale */
    --h1: clamp(2.3rem, 4.4vw, 4rem);
    --h2: clamp(1.8rem, 3.2vw, 2.8rem);
    --h3: clamp(1.25rem, 1.8vw, 1.6rem);
    --h4: clamp(1rem, 1.3vw, 1.25rem);
    --sub1: clamp(0.95rem, 1.2vw, 1.15rem);
    --sub2: clamp(0.78rem, 0.88vw, 0.88rem);
    --body1: clamp(0.96rem, 1.2vw, 1.12rem);
    --body2: clamp(0.86rem, 1vw, 0.95rem);
    --body3: clamp(0.78rem, 0.88vw, 0.85rem);
}

/* --------------------------------------------------------------------------
   GLOBAL RESET & BASICS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.025em;
    word-break: keep-all;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--color-orange);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* --------------------------------------------------------------------------
   FULLSCREEN 3D COSMIC CANVAS & VIGNETTE OVERLAY
   -------------------------------------------------------------------------- */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
    cursor: default;
    background: radial-gradient(circle at 70% 40%, #070414 0%, #030208 85%);
}

#cosmic-impact-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
}

.cosmic-vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 50%, rgba(3, 2, 8, 0) 40%, rgba(3, 2, 8, 0.75) 100%);
}

/* Layout Container */
.o-container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding-left: var(--site-padding-x);
    padding-right: var(--site-padding-x);
}

.section {
    position: relative;
    width: 100%;
    padding-top: calc(var(--site-padding-y) * 2.2);
    padding-bottom: calc(var(--site-padding-y) * 2.2);
    z-index: 2;
}

.o-dashline {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   ACADEMIC HEADER NAVIGATION
   -------------------------------------------------------------------------- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--site-padding-x);
    background: rgba(3, 2, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.site-header-left {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    font-size: 1.25rem;
    color: var(--color-orange);
    text-shadow: 0 0 12px var(--color-orange-glow);
    animation: celestial-pulse 3s infinite ease-in-out;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--display-font);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--color-white);
}

.brand-subtitle {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    color: var(--color-white-subtle);
    letter-spacing: 0.02em;
}

.site-header-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-item {
    font-family: var(--body-font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-white-muted);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--color-white);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1.5px;
    background: var(--color-orange);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-action-btn.primary {
    background: var(--color-orange);
    border-color: var(--color-orange-bright);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 16px var(--color-orange-glow);
}

.header-action-btn.primary:hover {
    background: var(--color-orange-bright);
    box-shadow: 0 0 24px rgba(255, 92, 0, 0.6);
}

.mobile-menu-trigger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mobile-menu-trigger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* Mobile Drawer */
#site-header-mobile-menu {
    position: fixed;
    top: 74px;
    right: 0;
    width: 280px;
    height: calc(100vh - 74px);
    background: rgba(10, 7, 22, 0.96);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#site-header.is-menu-active #site-header-mobile-menu {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.mobile-nav-links a {
    font-size: 0.95rem;
    color: var(--color-white-muted);
    font-family: var(--mono-font);
}

.mobile-nav-links a:hover {
    color: var(--color-orange);
}

#site-header-blocker {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 98;
}

#site-header.is-menu-active #site-header-blocker {
    display: block;
}

/* --------------------------------------------------------------------------
   1. HERO STAGE (3D Sculpture Seamlessly on Cosmic Background)
   -------------------------------------------------------------------------- */
.cosmic-hero-stage {
    position: relative;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cosmic-hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
}

.hero-statement-col {
    pointer-events: auto;
    max-width: 620px;
}

.academic-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-muted);
    margin-bottom: 1.4rem;
    backdrop-filter: blur(12px);
}

.pulsing-celestial-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    animation: celestial-pulse 2s infinite ease-in-out;
}

.badge-year {
    color: var(--color-orange);
    font-weight: 700;
}

.cosmic-hero-heading {
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--h1);
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--color-white);
    margin-bottom: 1.4rem;
}

.cosmic-glow-text {
    background: linear-gradient(135deg, #ffffff 30%, #ff7824 70%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 92, 0, 0.3);
}

.cosmic-hero-lead {
    font-family: var(--serif-font);
    font-size: var(--body1);
    line-height: 1.75;
    color: var(--color-white-muted);
    margin-bottom: 1.8rem;
    max-width: 580px;
}

/* Academic Stats Strip */
.academic-stats-strip {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 1.2rem;
    background: rgba(10, 8, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    margin-bottom: 2rem;
}

.stat-pill {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-val {
    font-family: var(--mono-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-orange);
}

.stat-lbl {
    font-family: var(--body-font);
    font-size: 0.78rem;
    color: var(--color-white-subtle);
}

.stat-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.hero-cta-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-family: var(--mono-font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.is-orange {
    background: var(--color-orange);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-orange-glow);
    border: 1px solid var(--color-orange-bright);
}

.btn.is-orange:hover {
    background: var(--color-orange-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 92, 0, 0.6);
}

.btn.is-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn.is-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn.is-dark {
    background: var(--color-black-elevated);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.is-dark:hover {
    background: #282b3a;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
}

.cosmic-interactive-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-subtle);
    line-height: 1.5;
    margin-top: 1.8rem;
}

.hint-symbol {
    color: var(--color-cyan);
    font-size: 0.85rem;
}

/* Right: Visual Area for Background 3D Sculpture + Separate Floating HUD */
.hero-cosmic-viewport-col {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: auto;
    cursor: grab;
}

.hero-cosmic-viewport-col:active {
    cursor: grabbing;
}

.cosmic-sculpture-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.85rem;
    background: rgba(10, 8, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: var(--mono-font);
    font-size: 0.7rem;
    color: var(--color-white-muted);
    backdrop-filter: blur(12px);
    pointer-events: none;
    user-select: none;
    margin-bottom: 2rem;
}

.label-orbit-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange);
    box-shadow: 0 0 8px var(--color-orange);
}

/* Dedicated Separate Floating Cosmic HUD (Placed completely in Right Column) */
.floating-cosmic-hud {
    position: relative;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    background: rgba(10, 8, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
    pointer-events: auto;
    width: fit-content;
}

.hud-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hud-label {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white-subtle);
    margin-right: 0.3rem;
    white-space: nowrap;
}

.hud-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hud-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.hud-pill.active {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange-bright);
    box-shadow: 0 0 12px var(--color-orange-glow);
    font-weight: 600;
}

.hud-pill.icon-only {
    padding: 0.3rem 0.6rem;
}

.hud-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.1rem 0;
}

/* --------------------------------------------------------------------------
   2. DEDICATED COURSEWORK BY LECTURE (강의별 가로 과제 탐색 ↔)
   -------------------------------------------------------------------------- */
.lectures-horizontal-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(3, 2, 8, 0) 0%, rgba(14, 11, 31, 0.65) 50%, rgba(3, 2, 8, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.section-badge-clean {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-main-heading {
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--h2);
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.section-sub-desc {
    font-family: var(--body-font);
    font-size: var(--body1);
    color: var(--color-white-muted);
    max-width: 680px;
}

.horizontal-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.h-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.h-nav-btn:hover {
    background: var(--color-orange);
    border-color: var(--color-orange-bright);
    box-shadow: 0 0 16px var(--color-orange-glow);
}

.h-scroll-counter {
    font-family: var(--mono-font);
    font-size: 0.88rem;
    color: var(--color-white-muted);
    padding: 0 0.5rem;
}

/* Lecture Filter Tabs Bar */
.lecture-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1.6rem;
    scrollbar-width: none;
}

.lecture-tabs-bar::-webkit-scrollbar {
    display: none;
}

.lecture-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--body-font);
    font-size: 0.86rem;
    color: var(--color-white-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.lecture-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.lecture-tab-btn.active {
    background: rgba(255, 92, 0, 0.15);
    border-color: var(--color-orange);
    color: var(--color-white);
    font-weight: 600;
}

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange);
}

/* Dynamic Lecture Summary Banner */
.lecture-summary-banner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 1.8rem;
    background: rgba(14, 11, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    margin-bottom: 1.8rem;
}

.banner-icon {
    font-size: 1.8rem;
    color: var(--color-orange);
}

.banner-content {
    flex: 1;
}

.banner-top-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.3rem;
}

.banner-tag {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
}

.banner-period {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-subtle);
}

.banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.banner-desc {
    font-size: 0.88rem;
    color: var(--color-white-muted);
}

.banner-stats {
    text-align: right;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-stat-num {
    font-family: var(--mono-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
}

.banner-stat-lbl {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white-subtle);
}

/* Horizontal Viewport Track */
.horizontal-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 1.8rem;
    position: relative;
    border-radius: 2px;
}

.horizontal-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 16%;
    background: linear-gradient(90deg, var(--color-orange), var(--color-cyan));
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

.lecture-horizontal-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.lecture-horizontal-container::-webkit-scrollbar {
    display: none;
}

.lecture-horizontal-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

/* Horizontal Coursework Card */
.lecture-h-card {
    width: 380px;
    background: rgba(14, 11, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.lecture-h-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 92, 0, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 92, 0, 0.15);
}

.h-card-img-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #000;
}

.h-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lecture-h-card:hover .h-card-img-wrap img {
    transform: scale(1.06);
}

.h-card-seq-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(3, 2, 8, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white);
    backdrop-filter: blur(6px);
}

.h-card-lecture-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 92, 0, 0.85);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
}

.h-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.h-card-id-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    color: var(--color-white-subtle);
    margin-bottom: 0.4rem;
}

.h-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.h-card-subtitle {
    font-family: var(--mono-font);
    font-size: 0.76rem;
    color: var(--color-white-subtle);
    margin-bottom: 0.8rem;
}

.h-card-medium {
    font-size: 0.85rem;
    color: var(--color-white-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-card-tools {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 1.2rem;
}

.h-tool-pill {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white-subtle);
}

.h-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--mono-font);
    font-size: 0.75rem;
}

.h-card-edition {
    color: var(--color-cyan);
}

.h-card-action-txt {
    color: var(--color-orange);
    font-weight: 600;
}

.horizontal-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono-font);
    font-size: 0.76rem;
    color: var(--color-white-subtle);
    margin-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   3. COMPLETE COURSEWORK SHOWCASE (학기별 제출 과제물 전체 보기)
   -------------------------------------------------------------------------- */
.showcase-section {
    padding: 6rem 0;
}

.cosmic-accent-label {
    display: inline-block;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.showcase-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.showcase-main-title {
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--h2);
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.showcase-subtitle {
    color: var(--color-white-muted);
    max-width: 650px;
}

.showcase-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-family: var(--body-font);
    font-size: 0.84rem;
    color: var(--color-white-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--color-white);
}

.pill.active {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange-bright);
    box-shadow: 0 0 14px var(--color-orange-glow);
    font-weight: 600;
}

.view-switchers {
    display: flex;
    gap: 6px;
}

.view-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-subtle);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--color-white);
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Showcase Grid Matrix */
.showcase-grid-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.showcase-grid-matrix.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.showcase-card {
    background: rgba(14, 11, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    border-color: rgba(255, 92, 0, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 92, 0, 0.15);
}

.showcase-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #000;
}

.showcase-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-card-img {
    transform: scale(1.05);
}

.showcase-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(3, 2, 8, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.22rem 0.6rem;
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-white);
    backdrop-filter: blur(6px);
}

.showcase-card-year {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 92, 0, 0.85);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-family: var(--mono-font);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.showcase-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-card-id {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 0.3rem;
}

.showcase-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.showcase-card-subtitle {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--color-white-subtle);
    margin-bottom: 0.9rem;
}

.showcase-card-desc {
    font-size: 0.88rem;
    color: var(--color-white-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.showcase-card-dim {
    font-family: var(--mono-font);
    font-size: 0.75rem;
    color: var(--color-white-subtle);
}

.showcase-card-view-btn {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   4. PROFESSOR CRITIQUE & COURSEWORK FEEDBACK SECTION
   -------------------------------------------------------------------------- */
.critique-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(3, 2, 8, 0) 0%, rgba(12, 9, 28, 0.7) 50%, rgba(3, 2, 8, 0) 100%);
}

.section-big-title {
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--h2);
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.critique-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2.2rem;
}

.critique-form-box {
    background: rgba(14, 11, 31, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
}

.critique-box-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.6rem;
}

.critique-box-icon {
    font-size: 1.8rem;
}

.critique-box-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.2rem;
}

.critique-box-desc {
    font-size: 0.82rem;
    color: var(--color-white-muted);
}

.critique-board-box {
    background: rgba(14, 11, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.board-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.board-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
}

.board-count {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--color-cyan);
}

.critique-cards-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 6px;
}

.critique-cards-stream::-webkit-scrollbar {
    width: 4px;
}

.critique-cards-stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.critique-entry-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--color-orange);
    border-radius: 12px;
    padding: 1.4rem;
    transition: all 0.2s ease;
}

.critique-entry-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.critique-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 8px;
}

.prof-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prof-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
}

.prof-lecture-pill {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.prof-grade-badge {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.prof-target-label {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-subtle);
    margin-bottom: 0.6rem;
}

.prof-target-label strong {
    color: var(--color-white-muted);
}

.prof-critique-text {
    font-family: var(--serif-font);
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.prof-critique-date {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    color: var(--color-white-subtle);
    text-align: right;
}

/* Form inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--color-white-muted);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 12px var(--color-orange-glow);
}

.form-group select option {
    background: #0e0b1f;
    color: #f5f5f7;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */
.footer-section {
    padding: 4rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 2, 8, 0.85);
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-symbol {
    font-size: 1.4rem;
    color: var(--color-orange);
}

.footer-title {
    font-family: var(--display-font);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-white);
}

.footer-sub {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white-subtle);
}

.footer-nav-links {
    display: flex;
    gap: 1.6rem;
    font-family: var(--mono-font);
    font-size: 0.82rem;
    color: var(--color-white-muted);
}

.footer-nav-links a:hover {
    color: var(--color-orange);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-subtle);
}

.footer-meta-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white-muted);
}

.status-green-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 8, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.is-active {
    display: flex;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: rgba(14, 11, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.4rem;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--color-white-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.modal-image-col {
    position: sticky;
    top: 0;
}

.modal-img-frame {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-img-caption {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white-subtle);
    margin-top: 0.6rem;
}

.modal-header {
    margin-bottom: 1.4rem;
}

.modal-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.modal-id {
    font-family: var(--mono-font);
    font-size: 0.76rem;
    color: var(--color-cyan);
}

.modal-category {
    font-family: var(--body-font);
    font-size: 0.76rem;
    color: var(--color-orange);
    background: rgba(255, 92, 0, 0.12);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.2rem;
}

.modal-subtitle {
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--color-white-subtle);
}

.modal-spec-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1.4rem;
    font-size: 0.84rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.spec-label {
    font-family: var(--mono-font);
    color: var(--color-white-subtle);
}

.spec-val {
    color: var(--color-white);
    text-align: right;
}

.modal-body-section {
    margin-bottom: 1.4rem;
}

.modal-body-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.4rem;
    font-family: var(--mono-font);
}

.modal-body-section p {
    color: var(--color-white-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.modal-body-section blockquote {
    color: var(--color-cyan);
    font-family: var(--serif-font);
    font-style: italic;
    border-left: 2px solid var(--color-cyan);
    padding-left: 1rem;
    line-height: 1.6;
}

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

.tools-tags span {
    font-family: var(--mono-font);
    font-size: 0.74rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white-muted);
}

.modal-footer-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn {
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--color-white-muted);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

/* Upload Modal */
.upload-modal-card {
    max-width: 780px;
}

.upload-header {
    margin-bottom: 1.8rem;
}

.upload-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.4rem;
}

.upload-header p {
    color: var(--color-white-muted);
    font-size: 0.88rem;
}

.dropzone-box {
    width: 100%;
    padding: 2.2rem 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone-box:hover {
    border-color: var(--color-orange);
    background: rgba(255, 92, 0, 0.04);
}

.dropzone-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.6rem;
}

.dropzone-sub {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-white-subtle);
    display: block;
    margin-top: 0.4rem;
}

#uploadImagePreview {
    max-height: 220px;
    margin: 0 auto;
    border-radius: 8px;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.8rem;
}

/* Theme Drawer */
.theme-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(10, 7, 24, 0.96);
    backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    overflow-y: auto;
}

.theme-drawer.is-active {
    transform: translateX(0);
}

.theme-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.drawer-tag {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    color: var(--color-cyan);
    font-weight: 700;
}

.drawer-title-group h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-white);
}

.drawer-close-btn {
    font-size: 1.2rem;
    color: var(--color-white-subtle);
    cursor: pointer;
}

.theme-section {
    margin-bottom: 2rem;
}

.theme-section-label {
    display: block;
    font-family: var(--mono-font);
    font-size: 0.76rem;
    color: var(--color-white-subtle);
    margin-bottom: 0.8rem;
}

.theme-presets-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-preset-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.theme-preset-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.theme-preset-card.active {
    border-color: var(--color-orange);
    background: rgba(255, 92, 0, 0.1);
}

.preset-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preset-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-white);
}

.preset-desc {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    color: var(--color-white-subtle);
}

.color-picker-item {
    margin-bottom: 1rem;
}

.color-picker-item label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono-font);
    font-size: 0.74rem;
    color: var(--color-white-muted);
    margin-bottom: 0.35rem;
}

.color-picker-item input[type="color"] {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 2px;
}

/* Quick Color Palette Swatches */
.swatch-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0.45rem;
}

.swatch-chip {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 0;
    flex-shrink: 0;
}

.swatch-chip:hover {
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .swatch-chip {
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .swatch-chip:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.floating-theme-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1rem;
    background: rgba(10, 7, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    color: var(--color-white);
    font-family: var(--mono-font);
    font-size: 0.78rem;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.floating-theme-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--color-orange);
}

.current-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-orange);
    box-shadow: 0 0 6px var(--color-orange);
}

/* Theme Mode Toggle Button in Header */
.theme-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffca80;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-mode-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff9d42;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 157, 66, 0.25);
}

.mode-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Theme Drawer Mode Segmented Switch */
.theme-mode-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.mode-segment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-segment-btn:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
}

.mode-segment-btn.active {
    background: var(--color-orange);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--color-orange-glow);
}

.theme-preset-group-title {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-white-subtle);
    padding: 0.5rem 0 0.2rem;
    letter-spacing: 0.04em;
}

/* Toast */
.toast-box {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    padding: 0.75rem 1.4rem;
    background: rgba(10, 7, 24, 0.95);
    border: 1px solid var(--color-orange);
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--mono-font);
    font-size: 0.84rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px var(--color-orange-glow);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.toast-box.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Keyframe Animations */
@keyframes celestial-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   LIGHT / WHITE THEME DESIGN SYSTEM (화이트 모드 전용 하이엔드 갤러리 미학)
   ========================================================================== */
html[data-theme="light"],
body.theme-light {
    --color-black: #f8f9fc;
    --color-black-deep: #f1f3f9;
    --color-black-surface: #ffffff;
    --color-black-card: #ffffff;
    --color-black-elevated: #f0f2f7;
    --color-white: #0f1117;
    --color-white-muted: #344054;
    --color-white-subtle: #667085;
    --color-white-transparent: rgba(15, 17, 23, 0);

    /* Cosmic Vibrant Accents for Light Mode */
    --color-orange: #ff5c00;
    --color-orange-bright: #ea580c;
    --color-orange-glow: rgba(255, 92, 0, 0.25);
    --color-cyan: #0284c7;
    --color-cyan-glow: rgba(2, 132, 199, 0.2);
    --color-violet: #8b5cf6;
    --color-gold: #d97706;

    background-color: #f8f9fc;
    color: #0f1117;
}

[data-theme="light"] body {
    background-color: var(--color-black, #f8f9fc) !important;
    color: #0f1117 !important;
}

/* Canvas & Vignette in Light Mode */
[data-theme="light"] #ambient-canvas {
    background: radial-gradient(circle at 70% 35%, #ffffff 0%, var(--color-black, #f8f9fc) 80%) !important;
}

[data-theme="light"] .cosmic-vignette-overlay {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0) 50%, rgba(220, 226, 240, 0.45) 100%) !important;
}

/* Header & Nav in Light Mode */
[data-theme="light"] #site-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .header-action-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .header-action-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .theme-mode-btn {
    background: rgba(255, 92, 0, 0.1);
    border: 1px solid rgba(255, 92, 0, 0.25);
    color: #ea580c;
}

[data-theme="light"] .theme-mode-btn:hover {
    background: rgba(255, 92, 0, 0.18);
    box-shadow: 0 4px 14px rgba(255, 92, 0, 0.2);
}

[data-theme="light"] .nav-item {
    color: #475467;
}

[data-theme="light"] .nav-item:hover {
    color: var(--color-orange);
}

[data-theme="light"] .mobile-menu-trigger span {
    background: #0f1117;
}

[data-theme="light"] #site-header-mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav-links a {
    color: #475467;
}

[data-theme="light"] .mobile-nav-links a:hover {
    color: var(--color-orange);
}

/* Hero Section in Light Mode */
[data-theme="light"] .academic-badge-row {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475467;
}

[data-theme="light"] .cosmic-hero-heading {
    color: #0f1117;
}

[data-theme="light"] .cosmic-glow-text {
    background: linear-gradient(135deg, #0f1117 25%, #ff5c00 70%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

[data-theme="light"] .cosmic-hero-lead {
    color: #475467;
}

[data-theme="light"] .academic-stats-strip {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-sep {
    color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn.is-glass {
    background: rgba(0, 0, 0, 0.04);
    color: #0f1117;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn.is-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .btn.is-dark {
    background: #e9edf5;
    color: #0f1117;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn.is-dark:hover {
    background: #dce3ee;
}

[data-theme="light"] .cosmic-interactive-hint {
    color: #667085;
}

[data-theme="light"] .cosmic-sculpture-label {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.09);
    color: #344054;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .floating-cosmic-hud {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hud-label {
    color: #667085;
}

[data-theme="light"] .hud-pill {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475467;
}

[data-theme="light"] .hud-pill:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f1117;
}

[data-theme="light"] .hud-pill.active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: #ffffff;
}

/* Lecture Section in Light Mode */
[data-theme="light"] .section-main-heading,
[data-theme="light"] .section-big-title,
[data-theme="light"] .showcase-main-title {
    color: #0f1117;
}

[data-theme="light"] .section-sub-desc,
[data-theme="light"] .showcase-subtitle {
    color: #475467;
}

[data-theme="light"] .h-nav-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #344054;
}

[data-theme="light"] .h-nav-btn:hover {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange-bright);
}

[data-theme="light"] .h-scroll-counter {
    color: #475467;
}

[data-theme="light"] .lecture-tab-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475467;
}

[data-theme="light"] .lecture-tab-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f1117;
}

[data-theme="light"] .lecture-tab-btn.active {
    background: rgba(255, 92, 0, 0.12);
    border-color: var(--color-orange);
    color: #ea580c;
}

[data-theme="light"] .lecture-summary-banner {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .banner-title {
    color: #0f1117 !important;
}

[data-theme="light"] .banner-desc {
    color: #475467 !important;
}

/* Sections in Light Mode - Seamlessly inherit chosen background color */
[data-theme="light"] .lectures-horizontal-section {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .showcase-section {
    background: transparent !important;
}

/* Cards in Light Mode */
[data-theme="light"] .lecture-h-card,
[data-theme="light"] .showcase-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .lecture-h-card:hover,
[data-theme="light"] .showcase-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(255, 92, 0, 0.45) !important;
}

[data-theme="light"] .h-card-img-wrap,
[data-theme="light"] .showcase-card-img-wrap {
    background: #eef2f7 !important;
}

[data-theme="light"] .h-card-seq-badge,
[data-theme="light"] .showcase-card-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f1117 !important;
}

[data-theme="light"] .h-card-title,
[data-theme="light"] .showcase-card-title {
    color: #0f1117 !important;
}

[data-theme="light"] .h-card-subtitle,
[data-theme="light"] .showcase-card-subtitle {
    color: #667085 !important;
}

[data-theme="light"] .h-card-medium,
[data-theme="light"] .showcase-card-desc {
    color: #475467 !important;
}

[data-theme="light"] .h-tool-pill,
[data-theme="light"] .showcase-tool-tag,
[data-theme="light"] .tools-tags span {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #475467 !important;
}

[data-theme="light"] .h-card-footer,
[data-theme="light"] .showcase-card-meta-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .horizontal-scroll-hint {
    color: #667085 !important;
}

[data-theme="light"] .pill {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #475467 !important;
}

[data-theme="light"] .pill:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #0f1117 !important;
}

[data-theme="light"] .pill.active {
    background: var(--color-orange) !important;
    color: #ffffff !important;
    border-color: var(--color-orange-bright) !important;
}

[data-theme="light"] .view-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #667085 !important;
}

[data-theme="light"] .view-btn:hover {
    color: #0f1117 !important;
}

[data-theme="light"] .view-btn.active {
    background: rgba(255, 92, 0, 0.12) !important;
    border-color: var(--color-orange) !important;
    color: var(--color-orange) !important;
}

[data-theme="light"] .o-dashline {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0) 100%) !important;
}

/* Critique Section in Light Mode */
[data-theme="light"] .critique-section {
    background: rgba(0, 0, 0, 0.025) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .critique-form-box,
[data-theme="light"] .critique-board-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .critique-box-title,
[data-theme="light"] .board-title {
    color: #0f1117;
}

[data-theme="light"] .critique-box-desc {
    color: #475467;
}

[data-theme="light"] .board-header-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .critique-cards-stream::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .critique-entry-card {
    background: #fbfcfe;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--color-orange);
}

[data-theme="light"] .critique-entry-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .prof-author-name {
    color: #0f1117;
}

[data-theme="light"] .prof-critique-text {
    color: #1e293b;
}

[data-theme="light"] .prof-target-label strong {
    color: #344054;
}

/* Form Controls in Light Mode */
[data-theme="light"] .form-group label {
    color: #344054;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #0f1117;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
    border-color: var(--color-orange);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
}

[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #0f1117;
}

/* Modals & Drawers in Light Mode */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .modal-card,
[data-theme="light"] .upload-modal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: #475467;
}

[data-theme="light"] .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f1117;
}

[data-theme="light"] .modal-title,
[data-theme="light"] .upload-header h2 {
    color: #0f1117;
}

[data-theme="light"] .modal-body-section h4 {
    color: #0f1117;
}

[data-theme="light"] .modal-body-section p,
[data-theme="light"] .upload-header p {
    color: #344054;
}

[data-theme="light"] .nav-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #475467;
}

[data-theme="light"] .nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f1117;
}

[data-theme="light"] .dropzone-box {
    background: #f8fafc;
    border: 2px dashed rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .dropzone-box:hover {
    border-color: var(--color-orange);
    background: rgba(255, 92, 0, 0.04);
}

[data-theme="light"] .theme-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .drawer-title-group h3 {
    color: #0f1117;
}

[data-theme="light"] .theme-mode-segmented {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mode-segment-btn {
    color: #475467;
}

[data-theme="light"] .mode-segment-btn:hover {
    color: #0f1117;
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mode-segment-btn.active {
    background: var(--color-orange);
    color: #ffffff;
}

[data-theme="light"] .theme-preset-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-preset-card:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-preset-card.active {
    border-color: var(--color-orange);
    background: rgba(255, 92, 0, 0.08);
}

[data-theme="light"] .preset-name {
    color: #0f1117;
}

[data-theme="light"] .floating-theme-trigger {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0f1117;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-section {
    background: rgba(0, 0, 0, 0.04) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .footer-title {
    color: #0f1117;
}

[data-theme="light"] .footer-nav-links {
    color: #475467;
}

[data-theme="light"] .footer-nav-links a:hover {
    color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-header-nav {
        display: none;
    }
    .mobile-menu-trigger {
        display: flex;
    }
    .cosmic-hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-cosmic-viewport-col {
        min-height: 420px;
        align-items: center;
    }
    .floating-cosmic-hud {
        width: 100%;
        align-items: center;
    }
    .showcase-grid-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    .critique-layout-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-image-col {
        position: static;
    }
}

@media (max-width: 640px) {
    :root {
        --site-padding-x: 5vw;
    }
    .showcase-grid-matrix {
        grid-template-columns: 1fr;
    }
    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .hud-label {
        display: none;
    }
}

/* =========================================================================
   ART CODING VIDEO ENTRIES · thumbnails & inline player
   ========================================================================= */
.video-play-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    white-space: nowrap;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: rgba(8, 7, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.video-play-triangle {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.74rem;
}
.lecture-h-card:hover .video-play-marker,
.showcase-card:hover .video-play-marker {
    background: rgba(8, 7, 23, 0.95);
    transform: translate(-50%, -50%) scale(1.055);
}
.video-duration-marker {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font: 600 0.74rem var(--mono-font);
    pointer-events: none;
}
.modal-img-frame video {
    display: block;
    width: 100%;
    max-height: 70vh;
    height: auto;
    background: #000;
    object-fit: contain;
    border-radius: 15px;
}
.modal-img-frame [hidden] { display: none !important; }

/* 2026 portfolio update — PDF uploads and inline PDF viewer */
.pdf-card-marker {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 18, 30, .8);
    backdrop-filter: blur(9px);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
    z-index: 3;
}
.modal-img-frame iframe {
    display: block;
    border: 0;
    width: 100%;
    min-height: min(68vh, 760px);
    height: 68vh;
    background: #f4f4f4;
    border-radius: 14px;
}
.pdf-open-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid var(--color-orange);
    border-radius: 10px;
    color: var(--color-orange);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    transition: background .2s;
}
.pdf-open-link:hover { background: rgba(255, 92, 0, .1); }
.upload-pdf-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
}
.upload-pdf-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 66px;
    border-radius: 8px;
    background: #fe5b28;
    color: white;
    font: 800 1rem/1 sans-serif;
    box-shadow: 0 8px 24px #fe5b2833;
}
.upload-pdf-description {
    display: flex;
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    overflow-wrap: anywhere;
}
.upload-pdf-description strong { font-size: .86rem; color: var(--color-white); }
.upload-pdf-description small { font-size: .73rem; color: var(--color-white-muted); }
.upload-local-note {
    color: var(--color-white-subtle);
    font-size: .74rem;
    line-height: 1.6;
    margin: 9px 3px 0;
}
.dropzone-box [hidden], .pdf-open-link[hidden] { display: none !important; }
.upload-actions [disabled] { opacity: .6; cursor: wait; }
@media (max-width: 720px) {
    .modal-img-frame iframe { min-height: 420px; height: 60vh; }
    .upload-pdf-preview { gap: 10px; }
}

/* 과제 삭제: 배경 카드와 상세 화면에 동일한 보조 동작을 제공합니다. */
.artwork-delete-btn {
    position: absolute;
    top: 48px;
    right: 12px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: rgba(12, 12, 24, .86);
    color: #f5f1f3;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
    backdrop-filter: blur(8px);
}
.artwork-delete-btn:hover,
.artwork-delete-btn:focus-visible {
    background: #762c3c;
    border-color: #ff9ea6;
    color: #fff;
    transform: translateY(-1px);
    outline-offset: 2px;
}
.modal-delete-btn {
    border: 1px solid rgba(255, 143, 153, .35);
    color: #ffb0ba;
}
.modal-delete-btn:hover,
.modal-delete-btn:focus-visible {
    background: rgba(201, 64, 80, .24);
    border-color: #ff99a5;
    color: #fff;
}
.modal-footer-nav { flex-wrap: wrap; }
@media (max-width: 640px) {
    .artwork-delete-btn { top: 45px; right: 10px; }
    .modal-footer-nav > .nav-btn { flex: 1 1 auto; }
}
