body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(circle at 20% 20%, rgba(46, 125, 246, 0.05), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(46, 125, 246, 0.04), transparent 22%), var(--bg);
    color: var(--text);
    min-height: 100vh;
}


.page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1440px;
    margin: 24px auto 64px;
    padding: 0 24px;
}

.side-nav {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 86px;
    height: fit-content;
}


.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-display {
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle input {
    display: none;
}

.slider {
    width: 60px;
    height: 28px;
    background: #dfe8f5;
    border-radius: 999px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.1);
}

.slider::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    box-shadow: 0 6px 12px rgba(46, 125, 246, 0.25);
    transition: all 0.25s ease;
}

.toggle input:checked + .slider {
    background: linear-gradient(135deg, #2e7df6, #5fa4ff);
}

.toggle input:checked + .slider::after {
    transform: translateX(32px);
}

.toggle-labels {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.2;
}

.grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 18px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.realtime-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 86px;
    height: fit-content;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.soft-badge {
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
}

.keyword-list {
    display: grid;
    gap: 10px;
}

.keyword-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f7f9fd;
    border: 1px solid #e2e8f0;
}

.keyword-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: #cdd9ed;
    cursor: pointer;
}

.keyword-rank {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #e0ecff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.keyword-name {
    font-weight: 700;
    color: #0f172a;
}

.keyword-trend {
    font-size: 13px;
    font-weight: 700;
}

.keyword-trend.up {
    color: #0ea769;
}

.keyword-trend.down {
    color: #ef4444;
}

.keyword-trend.flat {
    color: #64748b;
}

/* 모달 내부 내용에 관련된 */
/* 모달 내부 본문 레이아웃 */
.modal-body-row {
    /*display:flex;*/
    gap: 24px;
    align-items: flex-start;
    margin-top: 16px;
}
