/* P01 Approved HiFi alignment — Topics + Projects. Keep shared shell authority intact. */
.vf-subject-page .vf-functional-sidebar .vf-category-section{display:none}
.vf-subject-main{padding-top:24px;padding-bottom:50px}

/* Shared subject-page rhythm */
.vf-subject-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,455px);align-items:center;gap:34px;margin-bottom:12px}
.vf-subject-title>span,.vf-subject-section-head>div>span{display:block;margin-bottom:5px;color:var(--ws-teal);font-size:11px;font-weight:800;letter-spacing:.065em}
.vf-subject-title h1{margin:0;color:var(--ws-strong);font-size:30px;line-height:1.1;letter-spacing:-.035em}
.vf-subject-title p{max-width:690px;margin:9px 0 0;color:var(--ws-muted);font-size:13.5px;line-height:1.65}
.vf-subject-stats{min-height:106px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);box-shadow:0 4px 14px rgba(15,23,42,.04);overflow:hidden}
.vf-subject-stats>div{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.vf-subject-stats>div+div:before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:1px;background:var(--ws-line)}
.vf-subject-stats small{color:var(--ws-muted);font-size:12px;font-weight:600}
.vf-subject-stats strong{color:var(--ws-teal);font-size:27px;line-height:1;font-weight:760}
.vf-subject-stats strong.warn{color:#ea8a16}.vf-subject-stats strong.danger{color:#ef4444}
.vf-subject-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}
.vf-subject-chips a{min-height:34px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--ws-line);border-radius:999px;background:var(--ws-panel);color:var(--ws-text);font-size:12px;font-weight:650;text-decoration:none;transition:border-color .14s ease,background .14s ease,color .14s ease}
.vf-subject-chips a:hover{border-color:color-mix(in srgb,var(--ws-teal) 35%,var(--ws-line));background:var(--ws-teal-soft);color:var(--ws-teal)}
.vf-subject-chips a.active{border-color:var(--ws-teal);background:var(--ws-teal);color:#fff}
.vf-subject-chips a.active small{color:inherit;opacity:.88}
.vf-subject-chips small{font-size:10.5px;opacity:.68}
.vf-subject-section-head{min-height:42px;margin:0 0 12px;display:flex;align-items:end;justify-content:space-between;gap:16px}
.vf-subject-section-head h2,.vf-project-action-panel h2{margin:0;color:var(--ws-strong);font-size:17px;line-height:1.25;letter-spacing:-.015em}
.vf-subject-section-head>label{display:flex;align-items:center;gap:7px;color:var(--ws-muted);font-size:11.5px}
.vf-subject-section-head select{height:34px;padding:0 30px 0 10px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);color:var(--ws-text);font:inherit;font-size:11.5px}
.vf-subject-section-head>small{color:var(--ws-muted-2);font-size:11px}
.vf-subject-empty{padding:46px 24px;border:1px dashed var(--ws-line-strong);border-radius:12px;background:var(--ws-panel);text-align:center}
.vf-subject-empty strong{font-size:14px}.vf-subject-empty p{margin:7px 0 0;color:var(--ws-muted);font-size:11.5px}
/* Shared subject-page pagination: numbered and textual actions use the same
   geometry. Never force a 3-character label inside a fixed 34px square. */
.vf-subject-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;row-gap:10px;margin-top:20px}
.vf-subject-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;width:auto;min-height:36px;height:36px;box-sizing:border-box;padding:0 10px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);color:var(--ws-muted);font-size:12px;line-height:1.2;white-space:nowrap;text-align:center;text-decoration:none;font-variant-numeric:tabular-nums}
.vf-subject-pagination a:is([rel="prev"],[rel="next"]){min-width:66px}
.vf-subject-pagination a.active{border-color:var(--ws-teal);background:var(--ws-teal);color:#fff}
.vf-subject-footnote{margin-top:30px;padding-top:15px;border-top:1px solid var(--ws-line);color:var(--ws-muted-2);font-size:11px;text-align:center}

/* Topics — approved editorial knowledge-library direction. */
.vf-topic-quick-panel{margin:4px 0 24px;padding:16px;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);box-shadow:0 3px 12px rgba(15,23,42,.035)}
.vf-topic-quick-panel>header{margin-bottom:12px}.vf-topic-quick-panel h2{margin:0;color:var(--ws-strong);font-size:16px;letter-spacing:-.015em}
.vf-topic-quick-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.vf-topic-quick-card{min-width:0;min-height:76px;padding:11px 12px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel);color:inherit;text-decoration:none;transition:background .14s ease,border-color .14s ease,transform .14s ease}
.vf-topic-quick-card:hover{background:var(--ws-soft);border-color:var(--ws-line-strong);transform:translateY(-1px)}
.vf-topic-quick-icon{width:42px;height:42px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:linear-gradient(145deg,var(--ws-teal-soft),var(--ws-soft));color:var(--ws-teal);font-size:16px;font-weight:800}
.vf-topic-quick-icon img{width:100%;height:100%;object-fit:cover;display:block}.vf-topic-quick-copy{min-width:0}.vf-topic-quick-copy strong,.vf-topic-quick-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vf-topic-quick-copy strong{color:var(--ws-strong);font-size:12.5px;line-height:1.35}.vf-topic-quick-copy small{margin-top:4px;color:var(--ws-muted);font-size:10.5px}
.vf-topic-library-section{margin-top:0}.vf-topic-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.vf-topic-library-card{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-panel);overflow:hidden;box-shadow:0 2px 8px rgba(15,23,42,.035);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.vf-topic-library-card:hover{transform:translateY(-2px);border-color:var(--ws-line-strong);box-shadow:0 8px 22px rgba(15,23,42,.07)}
.vf-topic-library-cover{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--ws-soft);text-decoration:none}.vf-topic-library-cover img{width:100%;height:100%;object-fit:cover;display:block}.vf-topic-library-cover>b{font-size:46px;color:var(--ws-muted-2)}
.vf-topic-library-body{padding:15px 15px 13px}.vf-topic-library-body h3{margin:0;color:var(--ws-strong);font-size:16px;line-height:1.42;letter-spacing:-.012em;cursor:default}.vf-topic-library-body h3>a{color:inherit;text-decoration:none;cursor:pointer}.vf-topic-library-body h3>a:hover{color:var(--ws-teal)}.vf-topic-library-body p{margin:8px 0 0;color:var(--ws-muted);font-size:11.5px;line-height:1.62;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vf-topic-library-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.vf-topic-library-tags span{padding:4px 8px;border:1px solid color-mix(in srgb,var(--ws-line) 88%,transparent);border-radius:6px;background:var(--ws-soft);color:var(--ws-muted);font-size:10.5px;line-height:1.25}
.vf-topic-library-card>footer{min-height:56px;padding:9px 11px 9px 14px;border-top:1px solid var(--ws-line);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;color:var(--ws-muted-2);font-size:10.8px}.vf-topic-updated{white-space:nowrap}.vf-topic-library-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.vf-topic-open{min-height:36px;padding:0 13px;display:inline-flex;align-items:center;border-radius:7px;background:var(--ws-teal);color:#fff;font-size:11.5px;font-weight:760;text-decoration:none;white-space:nowrap}.vf-topic-open:hover{background:var(--ws-teal-deep)}

/* Projects — approved status/action-center direction, grounded in owned facts. */
.vf-project-action-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:4px 0 22px}
.vf-project-action-panel{min-height:256px;padding:0 18px;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);box-shadow:0 3px 12px rgba(15,23,42,.035);overflow:hidden}
.vf-project-action-panel:has(.vf-project-calm){min-height:154px}
.vf-project-action-panel>header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ws-line)}
.vf-project-panel-action{flex:0 0 auto;color:var(--ws-teal);font-size:10.8px;font-weight:720;text-decoration:none;white-space:nowrap}.vf-project-panel-action:hover{color:var(--ws-teal-deep)}
.vf-project-action-list,.vf-project-check-list{display:grid}.vf-project-action-row,.vf-project-check-row{min-height:58px;display:grid;align-items:center;gap:10px;border-bottom:1px solid var(--ws-line)}.vf-project-action-row:last-child,.vf-project-check-row:last-child{border-bottom:0}
.vf-project-action-row{grid-template-columns:28px minmax(0,1fr) auto}.vf-project-action-mark{width:24px;height:24px;display:grid;place-items:center;border:1px solid #f59e0b;border-radius:50%;color:#d97706;font-size:11px;font-weight:900}.vf-project-action-row.critical .vf-project-action-mark{border-color:#ef4444;color:#dc2626}.vf-project-action-copy,.vf-project-check-copy{min-width:0}.vf-project-action-copy b,.vf-project-check-copy b{display:block;color:var(--ws-strong);font-size:12.2px;line-height:1.35}.vf-project-action-copy small,.vf-project-check-copy small{display:block;margin-top:3px;color:var(--ws-muted);font-size:10.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vf-project-action-row>a,.vf-project-action-row>button{min-height:33px;padding:0 11px;border:1px solid color-mix(in srgb,var(--ws-teal) 38%,var(--ws-line));border-radius:7px;background:transparent;color:var(--ws-teal);font:inherit;font-size:10.8px;font-weight:720;text-decoration:none;cursor:pointer}.vf-project-action-row>a:hover,.vf-project-action-row>button:hover{background:var(--ws-teal-soft)}
.vf-project-calm{min-height:195px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.vf-project-action-panel:has(.vf-project-calm) .vf-project-calm{min-height:95px}.vf-project-calm b{font-size:13px}.vf-project-calm small{max-width:360px;margin-top:6px;color:var(--ws-muted);font-size:10.8px;line-height:1.6}
.vf-project-check-row{grid-template-columns:28px minmax(0,1fr) auto}.vf-project-check-mark{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--ws-soft);color:var(--ws-muted);font-size:11px;font-weight:800}.vf-project-check-mark.ok{background:#dcfce7;color:#16a34a}.vf-project-check-mark.warning{background:#fff7ed;color:#ea580c}.vf-project-check-mark.critical{background:#fef2f2;color:#dc2626}.vf-project-check-row time{color:var(--ws-muted-2);font-size:10.8px;white-space:nowrap}
.vf-project-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.vf-project-action-card{min-width:0;min-height:248px;padding:15px 16px 12px;display:flex;flex-direction:column;border:1px solid var(--ws-line);border-radius:11px;background:var(--ws-panel);box-shadow:0 2px 8px rgba(15,23,42,.03);transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.vf-project-action-card:hover{transform:translateY(-1px);border-color:var(--ws-line-strong);box-shadow:0 7px 20px rgba(15,23,42,.06)}.vf-project-action-card.has-attention{border-color:color-mix(in srgb,#f59e0b 32%,var(--ws-line))}
.vf-project-action-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vf-project-action-card>header>div{min-width:0}.vf-project-action-card h3{margin:0;color:var(--ws-strong);font-size:15.5px;line-height:1.35;letter-spacing:-.012em;cursor:default}.vf-project-action-card h3>a{color:inherit;text-decoration:none;cursor:pointer}.vf-project-action-card>header p{margin:6px 0 0;color:var(--ws-muted);font-size:11.3px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vf-project-state{flex:0 0 auto;padding:4px 8px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-panel);color:var(--ws-muted);font-size:10.3px;font-weight:700}.vf-project-state.active{border-color:#a7f3d0;color:#059669;background:#f0fdf4}.vf-project-state.optimizing{border-color:#bfdbfe;color:#2563eb;background:#eff6ff}.vf-project-state.sealed{color:var(--ws-muted)}.vf-project-state.retired{color:var(--ws-muted-2)}
.vf-project-action-card.has-attention:has(.vf-project-card-alert.critical){border-color:color-mix(in srgb,#ef4444 34%,var(--ws-line))}
.vf-project-facts{margin:14px 0 0;display:grid;gap:7px}.vf-project-facts>div{display:grid;grid-template-columns:66px minmax(0,1fr);gap:8px;align-items:baseline}.vf-project-facts dt{color:var(--ws-muted-2);font-size:10.5px}.vf-project-facts dd{min-width:0;margin:0;color:var(--ws-text);font-size:10.9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vf-project-health{color:var(--ws-muted)}.vf-project-health.healthy,.vf-project-health.redirected{color:#16a34a}.vf-project-health.suspected,.vf-project-health.temporary{color:#ea580c}.vf-project-health.confirmed{color:#dc2626}
.vf-project-action-card:has(.vf-project-state.sealed) .vf-project-health,.vf-project-action-card:has(.vf-project-state.retired) .vf-project-health{color:var(--ws-muted)}
.vf-project-card-alert{margin-top:11px;padding:8px 9px;border-radius:7px;background:#fff7ed}.vf-project-card-alert.critical{background:#fef2f2}.vf-project-card-alert b{display:block;color:#b45309;font-size:10.7px}.vf-project-card-alert.critical b{color:#dc2626}.vf-project-card-alert small{display:block;margin-top:3px;color:var(--ws-muted);font-size:10.2px;line-height:1.45}
.vf-project-action-card>footer{position:relative;margin-top:auto;padding-top:12px;border-top:1px solid var(--ws-line);display:flex;align-items:center;justify-content:space-between;gap:10px}.vf-project-primary-slot{min-width:0;display:flex;align-items:center}.vf-project-primary-action{min-height:36px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border-radius:8px;background:var(--ws-teal);color:#fff;font-size:11.5px;font-weight:760;text-decoration:none;white-space:nowrap}.vf-project-primary-action:hover{background:var(--ws-teal-deep)}.vf-project-no-open{color:var(--ws-muted-2);font-size:10.5px}
.vf-project-more{position:relative;flex:0 0 auto}.vf-project-more>summary{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);color:var(--ws-muted);font-size:13px;font-weight:760;letter-spacing:.04em;list-style:none;cursor:pointer}.vf-project-more>summary::-webkit-details-marker{display:none}.vf-project-more>summary:hover,.vf-project-more[open]>summary{border-color:var(--ws-line-strong);background:var(--ws-soft);color:var(--ws-teal)}.vf-project-more-menu{position:absolute;right:0;top:calc(100% + 7px);bottom:auto;z-index:12;min-width:158px;padding:6px;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-panel);box-shadow:0 12px 28px rgba(15,23,42,.12)}.vf-project-more-menu>a,.vf-project-more-menu>button{width:100%;min-height:34px;padding:0 10px;display:flex;align-items:center;border:0;border-radius:6px;background:transparent;color:var(--ws-text);font:inherit;font-size:11.2px;text-align:left;text-decoration:none;cursor:pointer}.vf-project-more-menu>a:hover,.vf-project-more-menu>button:hover{background:var(--ws-soft);color:var(--ws-teal)}.vf-project-more-menu>button.active{background:#fff8e8;color:#b7791f}.vf-project-more-menu>button[data-favorite-id]{font-size:0}.vf-project-more-menu>button[data-favorite-id]::before{content:"收藏";font-size:11.2px}.vf-project-more-menu>button[data-favorite-id][data-favorite="1"]::before{content:"取消收藏"}

@media(max-width:1450px){.vf-topic-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1240px){.vf-topic-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.vf-topic-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.vf-project-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vf-subject-hero{grid-template-columns:minmax(0,1fr) 380px}}
@media(max-width:920px){.vf-subject-hero{grid-template-columns:1fr;gap:16px}.vf-subject-stats{max-width:540px}.vf-topic-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vf-project-action-panels{grid-template-columns:1fr}.vf-project-action-panel{min-height:0}}
@media(max-width:700px){.vf-subject-main{padding-top:14px}.vf-subject-title h1{font-size:26px}.vf-subject-title p{font-size:12.5px}.vf-subject-stats{min-height:82px}.vf-subject-stats small{font-size:10.8px}.vf-subject-stats strong{font-size:21px}.vf-subject-chips{margin-top:12px}.vf-topic-quick-panel{padding:12px}.vf-topic-quick-grid{grid-template-columns:1fr 1fr}.vf-topic-library-grid,.vf-project-action-grid{grid-template-columns:1fr}.vf-topic-library-card>footer{align-items:flex-start;flex-direction:column}.vf-topic-library-actions{width:100%;justify-content:flex-end}.vf-project-action-row{grid-template-columns:26px minmax(0,1fr)}.vf-project-action-row>a,.vf-project-action-row>button{min-height:44px;grid-column:2;justify-self:start;margin-bottom:8px}.vf-project-check-row{grid-template-columns:26px minmax(0,1fr)}.vf-project-check-row time{grid-column:2}.vf-project-action-card{min-height:0}.vf-project-primary-action,.vf-project-more>summary,.vf-project-more-menu>a,.vf-project-more-menu>button{min-height:44px}.vf-project-more>summary{width:44px}}
@media(max-width:460px){.vf-topic-quick-grid{grid-template-columns:1fr}.vf-subject-section-head{align-items:flex-start;flex-direction:column}.vf-project-facts>div{grid-template-columns:60px minmax(0,1fr)}}

/* P01 R4: three content workspaces recover inside their existing task flows. */
body:is(.vf-topic-library-page,.vf-course-library-page,.vf-project-action-page) .vf-content-empty-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
body:is(.vf-topic-library-page,.vf-course-library-page,.vf-project-action-page) .vf-content-empty-actions :is(button,a){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid #07884f;border-radius:9px;background:#07884f;color:#fff;font:inherit;font-size:14px;font-weight:650;line-height:1.45;text-decoration:none;cursor:pointer}
body:is(.vf-topic-library-page,.vf-course-library-page,.vf-project-action-page) .vf-content-empty-actions .is-secondary{border-color:var(--ws-line-strong,#c9d9cf);background:var(--ws-panel,#fff);color:var(--ws-strong,#183b2c)}
body:is(.vf-topic-library-page,.vf-course-library-page,.vf-project-action-page) .vf-content-empty-actions :is(button,a):focus-visible{outline:3px solid #12a46b;outline-offset:3px}


/* News source task uses the same native management surface on every subsite. */
.vf-local-news-tasks .vf-news-manage-toolbar{display:flex;align-items:end;gap:9px 12px;flex-wrap:wrap;padding:10px 0 14px}
.vf-local-news-tasks .vf-news-manage-filter{display:flex;flex-direction:column;flex:1 1 180px;min-width:0;gap:5px;font-size:12px}
.vf-local-news-tasks .vf-news-manage-filter input{box-sizing:border-box;min-width:0;width:100%;max-width:320px;border:1px solid var(--vf-border,#e2e8f0);border-radius:8px;padding:9px 11px;background:var(--vf-surface,#fff);color:inherit;font:inherit;font-size:13px}
.vf-local-news-tasks .vf-news-manage-filter input:focus-visible{outline:2px solid var(--vf-brand,#0f766e);outline-offset:1px}
.vf-local-news-tasks .vf-news-manage-toolbar p{margin:0;flex:1 1 170px;font-size:12px;color:var(--vf-muted,#64748b)}
.vf-local-news-tasks .vf-news-manage-toolbar button{border:1px solid var(--vf-border,#e2e8f0);border-radius:8px;padding:8px 11px;background:transparent;color:inherit;font-size:12px;cursor:pointer}
.vf-local-news-tasks .vf-news-manage-toolbar button:hover{border-color:var(--vf-brand,#0f766e);color:var(--vf-brand,#0f766e)}
.vf-local-news-tasks .vf-news-manage-row[hidden]{display:none!important}
@media(max-width:767px){.vf-local-news-tasks .vf-news-manage-toolbar p{flex-basis:100%}.vf-local-news-tasks .vf-news-manage-filter input{max-width:100%}}
