@charset "UTF-8";

:root {
    --background: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --sidebar-background: #fbfcff;

    --line: #e4e9f1;
    --line-dark: #d7deea;

    --text: #111827;
    --text-soft: #334155;
    --muted: #64748b;
    --light-text: #94a3b8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eaf2ff;

    --success: #16a34a;
    --success-soft: #dcfce7;

    --danger: #ef4444;

    --sidebar-width: 284px;
    --right-column-width: 370px;

    --radius-small: 8px;
    --radius: 12px;
    --radius-large: 16px;

    --shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family:
        Pretendard,
        "Noto Sans KR",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 14px;
    word-break: keep-all;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
label,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    cursor: pointer;
}

label {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

input {
    min-width: 0;
}

.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

/* =========================
   왼쪽 사이드바
========================= */

.sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 18px 20px;
    overflow-y: auto;
    background: var(--sidebar-background);
    border-right: 1px solid var(--line);
    scrollbar-width: thin;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    margin: 0 8px 27px;
}

.brand-symbol {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 31px;
    height: 31px;
    padding: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, #60a5fa, var(--primary));
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.24);
}

.brand-symbol::after {
    position: absolute;
    right: -6px;
    bottom: -7px;
    width: 24px;
    height: 24px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    content: "";
}

.brand-symbol i {
    position: relative;
    z-index: 1;
    display: block;
    width: 4px;
    border-radius: 4px 4px 1px 1px;
    background: #ffffff;
}

.brand-symbol i:nth-child(1) {
    height: 9px;
}

.brand-symbol i:nth-child(2) {
    height: 17px;
}

.brand-symbol i:nth-child(3) {
    height: 13px;
}

.brand-name {
    color: var(--primary);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.055em;
}

.main-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    color: #273449;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.menu-item:hover {
    background: #f1f5f9;
}

.menu-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.menu-icon {
    color: #64748b;
    font-size: 17px;
    line-height: 1;
    text-align: center;
}

.menu-item.active .menu-icon {
    color: var(--primary);
}

.menu-label {
    overflow: hidden;
    font-size: 14px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-count {
    min-width: 30px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.sidebar-section {
    margin-top: 28px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 27px;
    padding: 0 8px 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.sidebar-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font-size: 19px;
    transition: 0.15s ease;
}

.sidebar-add-button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-item,
.folder-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    color: #334155;
    transition: background 0.15s ease;
}

.source-item:hover,
.folder-item:hover {
    background: #f1f5f9;
}

.source-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border-radius: 50%;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
}

.source-naver {
    background: #03c75a;
}

.source-google {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.source-it {
    background: #7c3aed;
}

.source-dev {
    background: #111827;
}

.source-laravel {
    background: #ef4444;
}

.source-name,
.folder-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-count,
.folder-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.folder-icon {
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.sidebar-more-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 9px 0 0 8px;
    padding: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
}

.sidebar-more-button:hover {
    color: var(--primary);
}

.sidebar-plan {
    margin-top: auto;
    padding: 17px 8px 0;
    border-top: 1px solid var(--line);
}

.plan-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-heading strong {
    font-size: 14px;
}

.plan-heading span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
}

.sidebar-plan p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 0 13px;
    color: #64748b;
    font-size: 12px;
}

.sidebar-plan p i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.sidebar-plan button {
    width: 100%;
    height: 35px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
}

/* =========================
   상단 헤더
========================= */

.main-content {
    min-width: 0;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(320px, 700px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 82px;
    padding: 0 38px;
    background: rgba(245, 247, 251, 0.9);
    border-bottom: 1px solid rgba(228, 233, 241, 0.6);
    backdrop-filter: blur(12px);
}

.global-search {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.search-icon {
    margin-right: 10px;
    color: #64748b;
    font-size: 21px;
}

.global-search input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.global-search input::placeholder {
    color: #94a3b8;
}

.global-search kbd {
    flex-shrink: 0;
    min-width: 54px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-family: inherit;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-size: 20px;
}

.header-icon-button:hover {
    background: #ffffff;
}

.notification-button span {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--background);
    border-radius: 50%;
    background: var(--danger);
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 146px;
    height: 48px;
    margin-left: 4px;
    padding: 5px 9px 5px 5px;
    border-radius: 12px;
    background: transparent;
    text-align: left;
}

.profile-button:hover {
    background: #ffffff;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.profile-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.profile-text strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-text small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
}

.profile-arrow {
    color: #64748b;
}

/* =========================
   메인 레이아웃
========================= */

.dashboard-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        var(--right-column-width);
    gap: 30px;
    padding: 28px 38px 50px;
}

.feed-column {
    min-width: 0;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.page-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 41px;
    padding: 0 17px;
    border-radius: 9px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 8px 17px rgba(37, 99, 235, 0.2);
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.primary-button span {
    font-size: 17px;
}

/* =========================
   필터
========================= */

.feed-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 39px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.filter-button:hover,
.filter-button.active {
    border-color: #cfe0ff;
    color: var(--primary);
}

.filter-button strong {
    color: #334155;
    font-weight: 750;
}

.view-buttons {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.view-buttons button {
    width: 43px;
    height: 38px;
    background: #ffffff;
    color: #64748b;
    font-size: 16px;
}

.view-buttons button + button {
    border-left: 1px solid var(--line);
}

.view-buttons button.active {
    background: var(--primary-soft);
    color: var(--primary);
}

/* =========================
   바로가기
========================= */

.shortcut-card {
    margin-bottom: 15px;
    padding: 19px 20px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.shortcut-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.shortcut-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.shortcut-card-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.shortcut-manage-button {
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.shortcut-manage-button:hover {
    border-color: #bfd4ff;
    color: var(--primary);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(70px, 1fr));
    gap: 8px;
}

.shortcut-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 9px 4px 8px;
    border-radius: 11px;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.shortcut-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #eef2f7;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    box-shadow: inset 0 -7px 12px rgba(15, 23, 42, 0.04);
}

.shortcut-name {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #334155;
    font-size: 11px;
    font-weight: 680;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortcut-naver {
    background: #03c75a;
    color: #ffffff;
}

.shortcut-google {
    background: linear-gradient(
        135deg,
        #4285f4 0 25%,
        #34a853 25% 50%,
        #fbbc05 50% 75%,
        #ea4335 75%
    );
    color: #ffffff;
}

.shortcut-youtube {
    background: #ff0033;
    color: #ffffff;
}

.shortcut-chatgpt {
    background: #111827;
    color: #ffffff;
}

.shortcut-laravel {
    background: #ef4444;
    color: #ffffff;
}

.shortcut-github {
    background: #111827;
    color: #ffffff;
}

.shortcut-blog {
    background: var(--primary);
    color: #ffffff;
}

.shortcut-add .shortcut-icon {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 27px;
    font-weight: 400;
}

.shortcut-add:hover .shortcut-icon {
    border-color: #93b5fa;
    background: var(--primary-soft);
    color: var(--primary);
}

/* =========================
   피드 카드
========================= */

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

.feed-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 210px;
    gap: 16px;
    min-height: 176px;
    padding: 19px 46px 17px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.025);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.feed-card:hover {
    border-color: #cfd9e8;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.feed-source-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-top: 1px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.feed-logo-tech {
    background: linear-gradient(145deg, #8b5cf6, #111827);
}

.feed-logo-design {
    background: linear-gradient(145deg, #f97316, #ef4444);
}

.feed-logo-css {
    background: #111827;
}

.feed-logo-dev {
    background: #0f172a;
    font-size: 9px;
}

.feed-card-content {
    min-width: 0;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 11px;
}

.feed-meta strong {
    color: #334155;
    font-size: 12px;
    font-weight: 780;
}

.feed-title {
    display: block;
    margin: 7px 0 5px;
    color: #111827;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.feed-title:hover {
    color: var(--primary);
}

.feed-description {
    display: -webkit-box;
    max-width: 680px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-category {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.feed-actions button {
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 680;
}

.feed-actions button:hover {
    border-color: #bfd4ff;
    color: var(--primary);
}

.feed-actions .read-button {
    color: var(--primary);
}

.feed-thumbnail {
    position: relative;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 103px;
    overflow: hidden;
    border-radius: 8px;
}

.feed-thumbnail::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    content: "";
}

.feed-thumbnail span {
    position: relative;
    z-index: 1;
}

.thumbnail-ai {
    background:
        radial-gradient(
            circle at 30% 25%,
            #2563eb,
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0f172a,
            #111827
        );
    color: #ffffff;
    font-size: 37px;
    font-weight: 900;
}

.thumbnail-design {
    background: #a9c7d9;
    color: rgba(255, 255, 255, 0.9);
    font-family: Georgia, serif;
    font-size: 70px;
}

.thumbnail-code {
    background: #111827;
    color: #86efac;
    font-family: monospace;
    font-size: 17px;
}

.thumbnail-laravel {
    background: linear-gradient(145deg, #ff4f4f, #d91f26);
    color: #ffffff;
    font-size: 23px;
    font-weight: 850;
}

.feed-unread-dot {
    position: absolute;
    top: 22px;
    right: 19px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
}

.feed-more-button {
    position: absolute;
    right: 15px;
    bottom: 18px;
    padding: 3px;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    letter-spacing: 1px;
}

.feed-more-button:hover {
    color: #111827;
}

.feed-finished {
    padding: 26px 10px 8px;
    text-align: center;
}

.finished-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 16px;
    font-weight: 900;
}

.feed-finished strong {
    display: block;
    color: #334155;
    font-size: 13px;
}

.feed-finished p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 11px;
}

/* =========================
   오른쪽 패널
========================= */

.right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.dashboard-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.panel-title h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.panel-title h2 span {
    color: #64748b;
    font-size: 16px;
}

.panel-title > a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 720;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 13px;
}

.stat-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 15px;
}

.stat-item div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.stat-item small {
    overflow: hidden;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-item strong {
    color: #1e293b;
    font-size: 19px;
    font-weight: 850;
}

.blue-text {
    color: var(--primary) !important;
}

.recent-source-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recent-source-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px;
    border-radius: 9px;
}

.recent-source-item:hover {
    background: #f8fafc;
}

.recent-source-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
}

.recent-laravel {
    background: #ef4444;
}

.recent-js {
    background: #facc15;
    color: #111827;
}

.recent-tech {
    background: #2563eb;
}

.recent-ux {
    background: #0ea5e9;
}

.recent-web {
    background: #111827;
}

.recent-source-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.recent-source-content strong,
.recent-source-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-source-content strong {
    color: #334155;
    font-size: 11px;
    font-weight: 750;
}

.recent-source-content small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.recent-source-item time {
    color: #94a3b8;
    font-size: 9px;
    white-space: nowrap;
}

.status-heading {
    margin-bottom: 17px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 9px;
    font-weight: 800;
}

.status-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.sync-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sync-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #64748b;
    font-size: 11px;
}

.sync-list strong {
    color: #334155;
    font-size: 11px;
}

.sync-button {
    width: 100%;
    height: 36px;
    margin-top: 17px;
    border: 1px solid #bfd4ff;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}

.sync-button:hover {
    background: var(--primary-soft);
}

.quick-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 8px;
}

.quick-add-form input {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: #334155;
    font-size: 10px;
}

.quick-add-form input:focus {
    border-color: #93b5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.quick-add-form button {
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 750;
}

.quick-add-form button:hover {
    background: var(--primary-hover);
}

/* =========================
   바로가기 추가 모달
========================= */

.shortcut-modal-toggle {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.shortcut-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shortcut-modal-toggle:checked ~ .shortcut-modal {
    display: flex;
}

.shortcut-modal-background {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.shortcut-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.modal-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.modal-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #64748b;
    font-size: 24px;
}

.modal-close-button:hover {
    background: #f1f5f9;
    color: #111827;
}

.shortcut-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.shortcut-form > label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-form > label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 750;
}

.shortcut-form input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    color: #111827;
    font-size: 13px;
}

.shortcut-form input:focus {
    border-color: #93b5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 10px;
}

.modal-cancel-button,
.modal-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 39px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
}

.modal-cancel-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: #64748b;
}

.modal-save-button {
    background: var(--primary);
    color: #ffffff;
}

.modal-save-button:hover {
    background: var(--primary-hover);
}

/* =========================
   반응형
========================= */

@media (max-width: 1480px) {
    :root {
        --sidebar-width: 250px;
        --right-column-width: 340px;
    }

    .dashboard-layout {
        gap: 22px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .top-header {
        padding-right: 28px;
        padding-left: 28px;
    }

    .shortcut-grid {
        grid-template-columns: repeat(6, minmax(72px, 1fr));
    }

    .feed-card {
        grid-template-columns: 45px minmax(0, 1fr) 185px;
    }

    .feed-thumbnail {
        width: 185px;
    }
}

@media (max-width: 1180px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .right-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .top-header {
        position: static;
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto;
        min-height: 72px;
        padding: 14px 18px;
    }

    .profile-text,
    .profile-arrow {
        display: none;
    }

    .profile-button {
        min-width: auto;
        padding-right: 5px;
    }

    .dashboard-layout {
        padding: 22px 18px 40px;
    }
}

@media (max-width: 720px) {
    .top-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-actions {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .primary-button {
        flex-shrink: 0;
        padding: 0 12px;
    }

    .feed-toolbar {
        align-items: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .toolbar-filters {
        flex-shrink: 0;
    }

    .view-buttons {
        display: none;
    }

    .shortcut-card {
        padding-right: 13px;
        padding-left: 13px;
    }

    .shortcut-card-header p {
        display: none;
    }

    .shortcut-grid {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .shortcut-item {
        flex: 0 0 75px;
    }

    .feed-card {
        grid-template-columns: 43px minmax(0, 1fr);
        padding: 16px;
    }

    .feed-thumbnail {
        grid-column: 1 / -1;
        width: 100%;
        height: 150px;
    }

    .feed-unread-dot {
        top: 18px;
        right: 17px;
    }

    .feed-more-button {
        right: 14px;
        bottom: 17px;
    }

    .right-column {
        display: flex;
    }
}

@media (max-width: 520px) {
    .dashboard-layout {
        padding-right: 12px;
        padding-left: 12px;
    }

    .top-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .page-heading {
        flex-direction: column;
        gap: 14px;
    }

    .primary-button {
        width: 100%;
    }

    .feed-title {
        padding-right: 13px;
        font-size: 16px;
    }

    .feed-description {
        font-size: 12px;
    }

    .feed-actions button {
        padding: 0 9px;
    }

    .shortcut-modal-dialog {
        padding: 21px 18px;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .modal-cancel-button,
    .modal-save-button {
        width: 100%;
    }
}

/* ========================= 로그인 사용자 영역 ========================= */ .profile-summary { display: flex; align-items: center; gap: 10px; min-width: 165px; height: 48px; margin-left: 4px; padding: 5px 8px 5px 5px; border-radius: 12px; transition: background 0.15s ease; } .profile-summary:hover { background: #ffffff; } .profile-summary .profile-text small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .logout-form { display: flex; align-items: center; margin: 0; } .logout-button { height: 38px; padding: 0 14px; border: 1px solid #dbe3ef; border-radius: 9px; background: #ffffff; color: #64748b; font-size: 12px; font-weight: 700; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; } .logout-button:hover { border-color: #bfd4ff; background: #f8fbff; color: #2563eb; } /* ========================= 비로그인 사용자 로그인 버튼 ========================= */ .login-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 17px; border: 1px solid #2563eb; border-radius: 9px; background: #2563eb; color: #ffffff; font-size: 12px; font-weight: 750; box-shadow: 0 7px 17px rgba(37, 99, 235, 0.2); transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; } .login-link-button:hover { border-color: #1d4ed8; background: #1d4ed8; box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26); transform: translateY(-1px); } .login-link-button:active { transform: translateY(0); } .login-link-icon { display: inline-flex; align-items: center; justify-content: center; } .login-link-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } /* ========================= 반응형 ========================= */ @media (max-width: 900px) { .profile-summary { min-width: auto; } .profile-summary .profile-text { display: none; } .login-link-button { padding: 0 14px; } } @media (max-width: 720px) { /* * 기존 CSS에 .header-actions { display:none; }가 있다면 * 아래 설정이 뒤에서 다시 표시하도록 덮어쓴다. */ .header-actions { display: flex; justify-content: flex-end; } .header-icon-button { display: none; } .profile-summary { display: none; } .logout-button, .login-link-button { height: 38px; } }

/* 비로그인 회원가입·로그인 버튼 */

.guest-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.register-link-button:hover {
    border-color: #bfd4ff;
    background: #f8fbff;
    color: #2563eb;
}

@media (max-width: 520px) {
    .register-link-button {
        display: none;
    }
}