/* home.css — 拟物化主页 */

/* ── 工具类 ── */
.home-hidden { opacity:0!important; pointer-events:none!important; visibility:hidden!important; }
body.home-active { overflow: hidden; }

.home-paste-dialog {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(8px);
}
.home-paste-card {
    width: min(480px, calc(100vw - 48px));
    padding: 24px;
    text-align: center;
    border-radius: 22px;
    background: var(--node-neu-bg);
    color: var(--text);
    border: 1px solid rgba(203, 213, 225, .42);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24), var(--neu-shadow);
    animation: home-paste-in .18s cubic-bezier(.22,1,.36,1) both;
}
@keyframes home-paste-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.home-paste-title {
    font-size: 20px;
    font-weight: 750;
    color: var(--text);
    letter-spacing: -.03em;
    margin-bottom: 8px;
}
.home-paste-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.home-paste-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.home-paste-btn {
    width: 100%;
    border: 1px solid rgba(203, 213, 225, .42);
    border-radius: 13px;
    padding: 11px 14px;
    background: var(--node-neu-bg);
    color: var(--text-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: var(--home-card-shadow);
    transition: transform .14s ease, box-shadow .14s ease, color .14s ease, background .14s ease;
}
.home-paste-btn:hover { transform: translateY(-1px); color: var(--text); box-shadow: var(--home-card-hover-shadow); }
.home-paste-btn.primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-hover));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}
.home-paste-btn.ghost {
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
}
.home-paste-btn.ghost:hover { background: rgba(0,0,0,.04); }

/* ── 全屏容器 ── */
.home-screen {
    position: fixed; inset: 0; z-index: 1800; display: none; overflow: hidden;
    background: var(--home-bg);
    color: var(--text, #0f172a);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}
.home-screen.show {
    display: flex;
    animation: home-in .24s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes home-in {
    from { opacity:0; transform:scale(.97); }
    to   { opacity:1; transform:scale(1); }
}

/* ── 主布局：左侧固定 + 右侧自适应 ── */
.home-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%; width: 100%;
}

/* ══════════════════════════════════════
   左侧面板（拟物化卡片）
══════════════════════════════════════ */
.home-hero {
    display: flex; flex-direction: column;
    padding: 36px 28px;
    background: var(--home-hero-bg);
    border-right: var(--home-hero-border);
    box-shadow: var(--home-hero-shadow);
    position: relative; overflow: hidden;
}

/* 品牌区 */
.home-brand { display:flex; align-items:center; gap:14px; margin-bottom:36px; }

.home-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0; overflow: hidden;
    background: transparent;
    box-shadow: none;
    border: none;
}
.home-logo img {
    width: 38px; height: 38px;
    object-fit: contain; display: block;
    image-rendering: -webkit-optimize-contrast;
}

.home-brand-text { min-width: 0; }
.home-brand-sub-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 2px;
}
.home-brand-sub {
    font-size: 10px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted);
}
.home-edition-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 15px;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--accent) 54%, var(--line));
    border-radius: 7px;
    color: var(--accent);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
}
.home-brand-name {
    font-size: 17px; font-weight: 700;
    color: var(--text); letter-spacing: -.03em; line-height: 1.2;
}

/* 操作按钮 */
.home-actions { display:flex; flex-direction:column; gap:8px; }

.home-action-btn {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 14px; border-radius: var(--home-card-radius);
    border: var(--home-card-border);
    background: var(--home-card-bg);
    color: var(--text-soft);
    font-size: 13px; font-weight: 550; font-family: inherit;
    cursor: pointer; text-align: left; line-height: 1.3;
    box-shadow: var(--neu-shadow);
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease, color .16s ease;
}

.home-action-btn .btn-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--node-neu-surface, #f4f7fa);
    color: var(--text-muted);
    box-shadow: var(--neu-inset);
    transition: background .16s ease, color .16s ease;
}
.home-action-btn .btn-icon svg {
    width: 14px; height: 14px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.home-action-btn .btn-label { flex: 1; }
.home-action-btn .btn-desc {
    font-size: 10.5px; color: var(--text-muted); font-weight: 400;
    margin-top: 1px; display: block;
}

.home-action-btn:hover {
    color: var(--text);
    box-shadow: var(--neu-shadow-hover);
    transform: translateY(-1px);
}
.home-action-btn:hover .btn-icon { color: var(--text-soft); }
.home-action-btn:active { transform: translateY(0); box-shadow: var(--neu-inset); }

.home-action-btn.primary {
    background: var(--home-primary-bg);
    color: var(--home-primary-text); border-color: transparent;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent),
                inset 0 1px 0 rgba(255,255,255,.22);
}
.home-action-btn.primary .btn-icon { background: rgba(255,255,255,.18); color: inherit; box-shadow: none; }
.home-action-btn.primary .btn-desc { color: rgba(255,255,255,.65); }
.home-action-btn.primary:hover {
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent),
                inset 0 1px 0 rgba(255,255,255,.28);
    transform: translateY(-2px);
}
.home-action-btn:disabled { opacity:.42; cursor:not-allowed; pointer-events:none; }

/* 底部 footer */
.home-footer {
    margin-top: auto; padding-top: 20px;
    border-top: var(--home-footer-border);
    display: flex; flex-direction: column; gap: 10px;
    align-items: stretch;
    text-align: left;
}

/* 左下角小按钮 */
.home-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.home-footer-btn {
    display: flex; align-items: center; justify-content: flex-start; gap: 7px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--home-card-radius);
    border: var(--home-card-border);
    background: var(--home-card-bg);
    color: var(--text-soft);
    font-size: 12.5px; font-weight: 550; font-family: inherit;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 4px rgba(15,23,42,.06);
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease, border-color .16s ease;
}
.home-footer-btn:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--node-neu-bg) 72%, var(--accent) 8%);
    border-color: color-mix(in srgb, var(--accent) 24%, rgba(203,213,225,.36));
    box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateY(-1px);
}
.home-footer-btn:active { transform: translateY(0); box-shadow: var(--neu-inset); }
.home-theme-icon { display:flex; align-items:center; flex-shrink:0; }
.home-theme-icon svg {
    width: 14px; height: 14px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.home-version {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-left: 2px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
    opacity: .62;
    line-height: 1.35;
}
.home-version span:last-child {
    font-size: 10px;
    letter-spacing: .02em;
}

/* ══════════════════════════════════════
   右侧内容区
══════════════════════════════════════ */
.home-recent-panel {
    display: flex; flex-direction: column;
    padding: 36px 40px; min-width: 0; overflow: hidden;
}

/* 面板头部 */
.home-panel-head {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-shrink: 0;
}
.home-panel-title {
    font-size: 20px; font-weight: 700;
    color: var(--text); letter-spacing: -.03em; line-height: 1.2;
}

/* 工具栏：视图切换 + 刷新 + 清空 */
.home-panel-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }

/* 拟物化小按钮（刷新/清空/视图切换） */
.home-neu-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: var(--radius-sm);
    border: 1px solid rgba(203,213,225,.38);
    background: var(--node-neu-bg);
    color: var(--text-soft);
    font-size: 12px; font-weight: 550; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    box-shadow: var(--neu-shadow);
    transition: box-shadow .14s ease, transform .14s ease, color .14s ease;
}
.home-neu-btn svg {
    width: 12px; height: 12px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.home-neu-btn:hover { color: var(--accent); box-shadow: var(--neu-shadow-hover); transform: translateY(-1px); }
.home-neu-btn:active { transform: translateY(0); box-shadow: var(--neu-inset); }

/* 视图切换按钮组 */
.home-view-toggle {
    display: flex; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid rgba(203,213,225,.38);
    box-shadow: var(--neu-inset);
}
.home-view-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 28px;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted);
    transition: background .12s ease, color .12s ease;
}
.home-view-btn svg {
    width: 13px; height: 13px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.home-view-btn.active { background: var(--node-neu-bg); color: var(--accent); box-shadow: var(--neu-shadow); }
.home-view-btn:not(.active):hover { color: var(--text-soft); background: rgba(0,0,0,.04); }

/* 搜索框 */
.home-search-wrap { position:relative; margin-bottom:16px; flex-shrink:0; }
.home-search-icon {
    position:absolute; left:12px; top:50%; transform:translateY(-50%);
    width:14px; height:14px; color:var(--text-muted); pointer-events:none;
}
.home-search-icon svg {
    width:14px; height:14px; stroke:currentColor; fill:none;
    stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.home-search {
    width:100%; box-sizing:border-box;
    padding: 9px 14px 9px 34px;
    border: 1px solid rgba(203,213,225,.38);
    border-radius: var(--radius-sm);
    background: var(--node-neu-bg);
    color: var(--text); font-size:13px; font-family:inherit; outline:none;
    box-shadow: var(--neu-inset);
    transition: border-color .14s ease, box-shadow .14s ease;
}
.home-search::placeholder { color: var(--text-muted); }
.home-search:focus {
    border-color: var(--accent);
    box-shadow: var(--neu-inset), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ── 列表容器 ── */
.home-recent-list {
    flex:1; overflow-y:auto; overflow-x:hidden;
    padding: 2px 2px 16px;
}
.home-recent-list::-webkit-scrollbar { width:4px; }
.home-recent-list::-webkit-scrollbar-track { background:transparent; }
.home-recent-list::-webkit-scrollbar-thumb { background:rgba(0,0,0,.12); border-radius:99px; }

/* ── 新建画布首卡 ── */
.home-new-list-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin: 2px 0 12px;
    border-radius: var(--radius-md);
    border: 1px dashed color-mix(in srgb, var(--accent) 42%, rgba(203,213,225,.52));
    background: color-mix(in srgb, var(--node-neu-bg) 86%, var(--accent) 6%);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--neu-shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.home-new-list-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--neu-shadow-hover);
    border-color: color-mix(in srgb, var(--accent) 68%, rgba(203,213,225,.52));
    background: color-mix(in srgb, var(--node-neu-bg) 78%, var(--accent) 10%);
}
.home-new-list-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    box-shadow: var(--neu-inset);
    flex-shrink: 0;
}
.home-new-list-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-new-card-plus svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-new-list-title { font-size: 13.5px; font-weight: 750; color: var(--text); margin-bottom: 2px; }
.home-new-list-desc { font-size: 11.5px; color: var(--text-muted); }
.home-new-card {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent) 34%, rgba(203,213,225,.52));
    background: color-mix(in srgb, var(--node-neu-bg) 91%, var(--accent) 3%);
}
.home-new-card:hover {
    border-color: color-mix(in srgb, var(--accent) 62%, rgba(203,213,225,.52));
    background: color-mix(in srgb, var(--node-neu-bg) 86%, var(--accent) 6%);
}
.home-new-card-cover {
    width: 100%;
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 54%),
        linear-gradient(135deg, color-mix(in srgb, var(--node-neu-surface, #f0f4f8) 92%, #fff 8%), var(--canvas-bg, #e8eef6));
}
.home-new-card-plus {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--accent) 88%, var(--text) 12%);
    opacity: .92;
    transition: transform .16s ease, opacity .16s ease, color .16s ease;
}
.home-new-card:hover .home-new-card-plus {
    transform: scale(1.08);
    opacity: 1;
    color: var(--accent);
}

/* ── 列表模式 ── */
.home-list-divider {
    font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
    color:var(--text-muted); padding:14px 10px 5px; user-select:none;
}
.home-list-divider:first-child { padding-top:4px; }

.home-file-row {
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.home-file-row:hover {
    background: var(--node-neu-bg);
    border-color: rgba(203,213,225,.38);
    box-shadow: var(--neu-shadow);
}
.home-file-row.missing { opacity:.52; }
.home-file-row.already-open { opacity:.68; }

.home-file-info { min-width:0; }
.home-file-name {
    font-size:13px; font-weight:600; color:var(--text);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    line-height:1.3; margin-bottom:2px;
    display:flex; align-items:center; gap:6px;
}
.home-file-open-badge {
    display:inline-flex; align-items:center; flex-shrink:0;
    font-size:9.5px; font-weight:700;
    color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent);
    border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    border-radius:4px; padding:1px 5px; letter-spacing:.02em;
}
.home-file-path {
    font-size:11px; color:var(--text-muted);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3;
}
.home-file-missing-tag {
    display:inline-block; margin-top:2px; font-size:10px; font-weight:600;
    color:#b45309; background:rgba(251,191,36,.12);
    border:1px solid rgba(251,191,36,.28); border-radius:4px; padding:1px 5px;
}
.home-file-right {
    display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0;
}
.home-file-time { font-size:10.5px; color:var(--text-muted); white-space:nowrap; font-weight:500; }
.home-file-ops { display:flex; align-items:center; gap:2px; opacity:0; transition:opacity .12s ease; }
.home-file-row:hover .home-file-ops { opacity:1; }
.home-file-op-btn {
    padding:2px 7px; border-radius:5px;
    border: none; background: transparent;
    color: var(--text-muted);
    font-size:11px; font-weight:500; cursor:pointer; font-family:inherit;
    transition: color .12s ease, background .12s ease;
}
.home-file-op-btn:hover { color:var(--text); background: rgba(0,0,0,.06); }
.home-file-op-btn.danger:hover { color:var(--danger); background: rgba(239,68,68,.08); }

/* ── 卡片模式 ── */
.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding-bottom: 16px;
}

.home-card-item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(203,213,225,.38);
    background: var(--node-neu-bg);
    box-shadow: var(--neu-shadow);
    cursor: pointer; overflow: hidden;
    transition: box-shadow .16s ease, transform .16s ease;
    position: relative;
}
.home-card-item:hover { box-shadow: var(--neu-shadow-hover); transform: translateY(-2px); }
.home-card-item:active { transform: translateY(0); box-shadow: var(--neu-inset); }
.home-card-item.missing { opacity:.52; }
.home-card-item.already-open { opacity:.68; }

.home-card-cover {
    width:100%; aspect-ratio:16/10; overflow:hidden;
    background: linear-gradient(135deg, var(--node-neu-surface, #f0f4f8), var(--canvas-bg, #e8eef6));
    display:flex; align-items:center; justify-content:center;
    position:relative;
}
.home-card-cover img {
    width:100%; height:100%; object-fit:cover; display:block;
}
.home-card-cover-placeholder {
    display:flex; align-items:center; justify-content:center;
    width:100%; height:100%;
    color:var(--text-muted); opacity:.4;
}
.home-card-cover-placeholder svg {
    width:28px; height:28px; stroke:currentColor; fill:none;
    stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.home-card-open-badge {
    position:absolute; top:6px; right:6px;
    font-size:9px; font-weight:700;
    color:var(--accent); background:color-mix(in srgb, var(--canvas-bg) 85%, transparent);
    border:1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius:4px; padding:1px 5px; backdrop-filter:blur(4px);
}
.home-card-body { padding:10px 12px 12px; }
.home-card-name {
    font-size:12.5px; font-weight:600; color:var(--text);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    line-height:1.3; margin-bottom:3px;
}
.home-card-meta { font-size:10.5px; color:var(--text-muted); line-height:1.4; }
.home-card-actions {
    display:flex; gap:2px; padding:0 10px 10px;
    opacity:0; transition:opacity .12s ease;
}
.home-card-item:hover .home-card-actions { opacity:1; }
.home-card-op-btn {
    flex:1; padding:4px 0; border-radius:5px;
    border: none; background: transparent;
    color: var(--text-muted);
    font-size:11px; font-weight:500; cursor:pointer; font-family:inherit;
    text-align:center;
    transition: color .12s ease, background .12s ease;
}
.home-card-op-btn:hover { color:var(--text); background: rgba(0,0,0,.06); }
.home-card-op-btn.danger:hover { color:var(--danger); background: rgba(239,68,68,.08); }

/* ── 空状态 / 加载 ── */
.home-empty {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:64px 28px; text-align:center; gap:10px;
}
.home-empty.compact { padding: 26px 28px 40px; }
.home-empty-icon {
    width:48px; height:48px; border-radius:var(--radius-md);
    background:var(--node-neu-bg); box-shadow:var(--neu-shadow);
    display:grid; place-items:center; margin-bottom:4px;
}
.home-empty-icon svg {
    width:22px; height:22px; stroke:var(--text-muted); fill:none;
    stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.home-empty-title { font-size:14px; font-weight:600; color:var(--text-soft); }
.home-empty-desc { font-size:12px; color:var(--text-muted); line-height:1.6; max-width:260px; }
.home-empty-action {
    margin-top:4px; padding:8px 18px; border-radius:var(--radius-sm);
    border:1px solid rgba(203,213,225,.38);
    background:var(--node-neu-bg); color:var(--text-soft);
    font-size:12.5px; font-weight:550; cursor:pointer; font-family:inherit;
    box-shadow:var(--neu-shadow); transition:box-shadow .14s ease, transform .14s ease;
}
.home-empty-action:hover { box-shadow:var(--neu-shadow-hover); transform:translateY(-1px); }

.home-loading {
    display:flex; align-items:center; justify-content:center;
    gap:7px; padding:48px 28px;
}
.home-loading-dot {
    width:6px; height:6px; border-radius:50%;
    background:var(--text-muted); opacity:.5;
    animation:home-pulse 1.2s ease-in-out infinite;
}
.home-loading-dot:nth-child(2) { animation-delay:.2s; }
.home-loading-dot:nth-child(3) { animation-delay:.4s; }
@keyframes home-pulse {
    0%,80%,100% { transform:scale(.8); opacity:.4; }
    40% { transform:scale(1.1); opacity:.9; }
}

/* ── 响应式 ── */
@media (max-width:860px) {
    .home-shell { grid-template-columns:1fr; grid-template-rows:auto 1fr; overflow-y:auto; }
    .home-hero { border-right:none; border-bottom:1px solid rgba(203,213,225,.32); padding:28px 24px; }
    .home-actions { flex-direction:row; flex-wrap:wrap; }
    .home-action-btn { flex:1; min-width:130px; }
    .home-footer { display:none; }
    .home-recent-panel { padding:24px; }
}

/* === 主页右键菜单 === */
#home-context-menu {
    position: fixed;
    z-index: 2600;
    background: var(--node-neu-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(203, 213, 225, 0.45);
    box-shadow: var(--neu-shadow-hover);
    padding: 6px;
    display: none;
    min-width: 150px;
    width: max-content;
    white-space: nowrap;
}
#home-context-menu.show { display: block; }
#home-context-menu .menu-item {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
#home-context-menu .menu-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
#home-context-menu .menu-divider {
    height: 1px;
    margin: 4px 6px;
    background: var(--line);
    opacity: 0.5;
}
.home-pin-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 11px;
    color: var(--accent);
    opacity: 0.7;
}
