/* =============================================
   TOPIK LMS Design System v5
   Theme: Soft Flat — Clean, Modern, Accessible
   Fonts: Inter + Pretendard + Sora (headings/numbers)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

:root {
    /* Core palette */
    --ink: #0F172A;
    --ink-light: #334155;
    --ink-muted: #64748B;
    --paper: #FAFAF9;
    --paper-warm: #F8FAFC;
    --paper-deep: #F1F5F9;

    /* Primary — blue */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-bg: rgba(37,99,235,0.06);

    /* Accent — warm vermillion (kept) */
    --accent: #EF4444;
    --accent-soft: #F87171;
    --accent-bg: rgba(239,68,68,0.06);

    /* Secondary — teal (kept for compatibility) */
    --teal: #2a9d8f;
    --teal-soft: #40c9a2;
    --teal-bg: rgba(42,157,143,0.08);

    /* Functional */
    --success: #22C55E;
    --success-bg: rgba(34,197,94,0.08);
    --warning: #F59E0B;
    --warning-bg: rgba(245,158,11,0.08);
    --danger: #EF4444;
    --danger-bg: rgba(239,68,68,0.06);
    --info: #3B82F6;
    --info-bg: rgba(59,130,246,0.06);

    /* Purple */
    --purple: #8B5CF6;
    --purple-bg: rgba(139,92,246,0.06);

    /* Surface system (replaces glass) */
    --surface: #FFFFFF;
    --surface-secondary: #F8FAFC;
    --glass-bg: #FFFFFF;
    --glass-border: #E2E8F0;
    --glass-blur: none;
    --glass-highlight: none;

    --border: #E2E8F0;
    --border-subtle: rgba(15,23,42,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.1);

    /* Radius — slightly tighter */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* Remove decorative blobs */
body::before, body::after {
    display: none;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4 { font-family: 'Sora', 'Noto Sans KR', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

/* ==================== Layout ==================== */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.topbar {
    background: var(--ink);
    color: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.topbar-brand .flag {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-nav a, .topbar-nav button {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.topbar-nav a:hover, .topbar-nav button:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
    color: white;
}

.topbar-nav a.nav-active {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
}

.page-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* ==================== Cards — Soft Flat ==================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ==================== Stat Cards ==================== */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.stat-card.reading::before { background: linear-gradient(90deg, var(--info), #60A5FA); }
.stat-card.writing::before { background: linear-gradient(90deg, var(--accent), #F87171); }
.stat-card.listening::before { background: linear-gradient(90deg, var(--purple), #A78BFA); }
.stat-card.total::before { background: linear-gradient(90deg, var(--ink), #475569); }

.stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 12px 0 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }

.btn-accent {
    background: var(--accent);
    color: white;
}
.btn-accent:hover { background: #DC2626; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.25); }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #16A34A; transform: translateY(-1px); }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: #DC2626; }

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--paper); border-color: #CBD5E1; }

.btn-ghost {
    background: transparent;
    color: var(--ink-muted);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ==================== Form ==================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-textarea { min-height: 100px; resize: vertical; }

/* ==================== Alerts ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.alert-error { background: var(--danger-bg); color: #991B1B; border-left: 3px solid var(--danger); display: block; }
.alert-success { background: var(--success-bg); color: #166534; border-left: 3px solid var(--success); display: block; }
.alert-warning { background: var(--warning-bg); color: #92400E; border-left: 3px solid var(--warning); display: block; }
.alert-info { background: var(--info-bg); color: #1E40AF; border-left: 3px solid var(--info); display: block; }

/* ==================== Badge ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-success { background: var(--success-bg); color: #16A34A; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: #92400E; }
.badge-info { background: var(--info-bg); color: var(--primary); }
.badge-neutral { background: rgba(15,23,42,0.06); color: var(--ink-muted); }

/* ==================== Progress Bar ==================== */
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(15,23,42,0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.reading { background: linear-gradient(90deg, var(--info), #60A5FA); }
.progress-fill.writing { background: linear-gradient(90deg, var(--success), #4ADE80); }
.progress-fill.listening { background: linear-gradient(90deg, var(--purple), #A78BFA); }

/* ==================== Tabs ==================== */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--paper-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: var(--ink-muted);
    background: transparent;
    border: none;
    font-family: inherit;
}

.tab:hover { color: var(--ink); background: rgba(255,255,255,0.6); }
.tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* ==================== Table ==================== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th {
    background: var(--paper-deep);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    padding: 12px 16px;
    text-align: left;
}

.table-wrap td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.table-wrap tr:hover td { background: var(--paper); }

/* ==================== Upload Area ==================== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--paper);
    color: var(--ink-muted);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--ink);
}

/* ==================== Radio / Checkbox Group ==================== */
.radio-group, .checkbox-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    background: var(--surface);
}

.radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.radio-pill input { display: none; }

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--paper-deep) 25%, var(--paper) 50%, var(--paper-deep) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton.skel-block { height: 120px; }
.skeleton.skel-line { height: 14px; margin-bottom: 8px; }
.skeleton.skel-line.short { width: 60%; }
.skeleton.skel-line.medium { width: 80%; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease-out; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up { animation: slideUp 0.5s ease-out; }

/* ==================== Responsive ==================== */

/* Hamburger toggle - hidden on desktop */
.topbar-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem; color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
    .topbar { padding: 10px 16px; }
    .topbar-brand { font-size: 0.95rem; gap: 8px; }
    .topbar-brand .flag { width: 26px; height: 26px; font-size: 0.75rem; border-radius: 8px; }
    .topbar-toggle { display: block; }
    .topbar-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink);
        flex-direction: column; padding: 12px 16px; gap: 6px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .topbar-nav.open { display: flex; }
    .topbar-nav a, .topbar-nav button { width: 100%; text-align: center; padding: 10px 16px; font-size: 0.88rem; }
    .topbar { position: sticky; top: 0; z-index: 100; }

    .page-content { padding: 16px 14px; }
    .card { padding: 16px; border-radius: var(--radius-md); }
    .card-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    .tabs { gap: 2px; }
    .tab { padding: 8px 12px; font-size: 0.78rem; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .btn-lg { padding: 12px 20px; font-size: 0.92rem; }
    .form-input, .form-textarea, .form-select { font-size: 16px; padding: 10px 12px; }
    .badge { font-size: 0.68rem; padding: 2px 8px; }
}

@media (max-width: 480px) {
    .page-content { padding: 12px 10px; }
    .card { padding: 14px; }
    h1 { font-size: 1.15rem; }
}

/* ==================== Bottom Tab Bar (Mobile) ==================== */
.bottom-tabbar {
    display: none; /* 모바일에서만 표시 */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 0 max(10px, env(safe-area-inset-bottom));
    z-index: 99;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.bottom-tabbar nav {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}
.bottom-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s;
}
.bottom-tabbar a .tab-icon { font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.bottom-tabbar a .tab-icon svg { width: 22px; height: 22px; }
.bottom-tabbar a.active { color: var(--primary); }

/* PC: topbar 탭 스타일 개선 */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-right .streak-pill {
    display: flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.15); color: #FBBF24;
    padding: 5px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700;
}
.topbar-right .xp-pill {
    display: flex; align-items: center; gap: 4px;
    background: rgba(59,130,246,0.15); color: #93C5FD;
    padding: 5px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700;
}

@media (max-width: 768px) {
    .bottom-tabbar { display: block; }
    .page-shell { padding-bottom: 70px; } /* 하단 탭바 공간 확보 */
    .topbar-nav { display: none !important; } /* 모바일에서 상단 네비 숨김, 하단 탭바로 대체 */
    .topbar-toggle { display: none !important; } /* 햄버거 메뉴도 불필요 */
    .topbar-right .streak-pill,
    .topbar-right .xp-pill { display: none; } /* 모바일에서 상단 바 간소화 */
}

/* ==================== Smart Home (Hub) ==================== */
.smart-home { max-width: 1200px; margin: 0 auto; padding: 24px; }

.smart-home .sh-greeting { margin-bottom: 20px; }
.smart-home .sh-greeting h1 { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.smart-home .sh-greeting .sh-sub { font-size: 0.82rem; color: var(--text-secondary); }
.smart-home .sh-stats { display: flex; gap: 8px; margin-top: 8px; }
.smart-home .sh-stat-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }

.smart-home .resume-card {
    background: linear-gradient(135deg, #0F172A, #1E293B); color: white;
    border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.smart-home .resume-card::after {
    content: '한'; position: absolute; right: 20px; top: -10px;
    font-size: 7rem; font-weight: 900; opacity: 0.04; font-family: 'Noto Sans KR';
}
.smart-home .resume-card .rc-label { font-size: 0.72rem; opacity: 0.5; margin-bottom: 4px; }
.smart-home .resume-card .rc-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.smart-home .resume-card .rc-progress { height: 4px; background: rgba(255,255,255,0.15); border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.smart-home .resume-card .rc-progress .fill { height: 100%; background: var(--primary); border-radius: 100px; }
.smart-home .resume-card .rc-btn {
    display: inline-block; background: white; color: #0F172A;
    font-weight: 700; font-size: 0.82rem; padding: 9px 18px;
    border-radius: var(--radius-sm); text-decoration: none; position: relative; z-index: 1;
}

.smart-home .today-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px;
}
.smart-home .today-card .tc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.smart-home .today-card .tc-header h3 { font-size: 0.88rem; font-weight: 700; }
.smart-home .today-card .tc-header .tc-count { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.smart-home .today-card .tc-progress { height: 4px; background: var(--surface-secondary); border-radius: 100px; margin-bottom: 12px; overflow: hidden; }
.smart-home .today-card .tc-progress .fill { height: 100%; background: var(--primary); border-radius: 100px; }

.smart-home .todo-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.8rem; border-bottom: 1px solid var(--border); }
.smart-home .todo-item:last-child { border: none; }
.smart-home .todo-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; }
.smart-home .todo-check.done { background: var(--success); border-color: var(--success); color: white; }
.smart-home .todo-text { flex: 1; }
.smart-home .todo-text.done { color: var(--text-muted); text-decoration: line-through; }
.smart-home .todo-xp { font-family: 'Sora'; font-weight: 700; font-size: 0.68rem; color: var(--warning); }

.smart-home .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.smart-home .quick-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; text-decoration: none; color: inherit; transition: all 0.2s; display: block;
}
.smart-home .quick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.smart-home .quick-card .qc-icon { font-size: 1.4rem; margin-bottom: 6px; }
.smart-home .quick-card .qc-title { font-weight: 700; font-size: 0.85rem; }
.smart-home .quick-card .qc-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.smart-home .notice-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px;
}
.smart-home .notice-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.smart-home .notice-card .ni-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.smart-home .notice-card .ni-item:last-child { border: none; }
.smart-home .notice-card .ni-title { font-size: 0.82rem; font-weight: 600; }
.smart-home .notice-card .ni-date { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* PC: 2-column layout for smart home */
@media (min-width: 769px) {
    .smart-home .sh-grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 24px;
    }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .smart-home { padding: 16px; }
    .smart-home .sh-grid { display: block; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 알림 */
.noti-wrapper{position:relative}
.noti-bell{background:none;border:none;cursor:pointer;padding:6px;position:relative;color:white;display:flex;align-items:center}
.noti-bell svg{width:20px;height:20px}
.noti-count{position:absolute;top:0;right:0;background:#ef4444;color:white;font-size:0.6rem;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:none;align-items:center;justify-content:center;font-family:'Sora'}
.noti-dropdown{display:none;position:absolute;right:0;top:calc(100% + 8px);width:320px;max-height:400px;overflow-y:auto;background:white;border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-xl);z-index:200}
.noti-item{display:block;padding:12px 16px;border-bottom:1px solid var(--border);text-decoration:none;color:var(--ink);transition:background 0.15s}
.noti-item:hover{background:var(--bg-subtle,#f8fafc)}
.noti-item.unread{background:#eff6ff;border-left:3px solid var(--primary)}
.noti-title{font-size:0.82rem;font-weight:600;margin-bottom:2px}
.noti-msg{font-size:0.75rem;color:var(--ink-muted);margin-bottom:4px}
.noti-time{font-size:0.68rem;color:var(--ink-muted)}
.noti-empty{padding:24px;text-align:center;color:var(--ink-muted);font-size:0.85rem}
.noti-read-all{display:block;text-align:center;padding:10px;font-size:0.78rem;color:var(--primary);text-decoration:none;border-top:1px solid var(--border)}
.noti-read-all:hover{background:var(--bg-subtle,#f8fafc)}
@media(max-width:480px){.noti-dropdown{width:280px;right:-40px}}
/* 공통 모바일 보강 */
@media (max-width: 768px) {
    img { max-width: 100%; height: auto; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    button, a.btn, .btn { min-height: 44px; }
}
