/* Homepage only. No shared component or other module overrides. */
#view-home {display:block;}
#view-home .home-workspace {max-width:1720px;margin:0 auto;padding-top:8px;--home-soft:var(--panel2);}
#view-home .home-heading {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;}
#view-home .home-heading h2 {font-size:20px;color:var(--brand-d);margin:0;}
#view-home .home-heading p {font-size:13px;color:var(--ink2);margin:4px 0 0;}
#view-home .home-date {text-align:right;font-size:12px;color:var(--ink2);white-space:nowrap;}
#view-home .home-eyebrow {display:block;font-size:11px;letter-spacing:2px;color:var(--gold);font-weight:600;margin-bottom:8px;}
#view-home .home-grid {display:grid;grid-template-columns:minmax(0,2.5fr) minmax(280px,1fr);gap:20px;align-items:stretch;}
#view-home .home-panel {background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0;}
#view-home .home-section-head {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px 14px;}
#view-home .home-section-head h3 {font-size:16px;color:var(--brand-d);display:flex;gap:10px;align-items:center;margin:0;}
#view-home .home-section-head h3::before {content:'';width:3px;height:15px;background:var(--gold);border-radius:2px;}
#view-home .home-caption {font-size:12px;color:var(--ink2);}
#view-home .home-link {border:0;padding:4px 0;background:none;color:var(--brand);font:inherit;font-size:12px;cursor:pointer;}
#view-home .home-feature {position:relative;isolation:isolate;margin:0 20px;border:1px solid var(--line);border-radius:8px;background:var(--home-soft);height:154px;overflow:hidden;}
#view-home .home-feature-scenes {position:absolute;inset:0;overflow:hidden;}
#view-home .home-feature-slide {position:absolute;inset:0;overflow:hidden;opacity:0;animation:home-feature-cycle 12s ease-in-out infinite;animation-delay:var(--scene-delay);}
#view-home .home-feature-slide:first-child {opacity:1;}
#view-home .home-scene-copy {position:absolute;z-index:1;left:5%;top:50%;transform:translateY(-50%);width:43%;color:var(--brand-d);display:flex;flex-direction:column;align-items:flex-start;}
#view-home .home-scene-copy > span {display:block;color:#927134;font-size:10px;letter-spacing:1.3px;margin-bottom:10px;}
#view-home .home-scene-title {display:block;font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-size:24px;font-weight:600;letter-spacing:1px;line-height:1.5;margin:0 0 6px;color:#10253e;}
#view-home .home-scene-subtitle {display:block;font-size:12px;line-height:1.8;margin:0;color:#5d6269;max-width:100%;}
#view-home .home-feature img {display:block;position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 54%;animation:home-feature-drift 12s ease-in-out infinite alternate;will-change:transform;transform-origin:center;}
#view-home .home-feature-tools {position:absolute;right:10px;bottom:9px;z-index:3;display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:4px;background:rgba(0,27,53,.76);color:#fff;}
#view-home .home-photo-credit {color:#fff;font-size:10px;}
#view-home .home-photo-credit:hover {text-decoration:underline;color:#fff;}
#view-home .home-feature-motion {font:inherit;font-size:10px;line-height:1.5;border:0;border-left:1px solid rgba(255,255,255,.4);padding:0 0 0 8px;background:transparent;color:#fff;cursor:pointer;min-height:22px;}
#view-home .home-feature-motion:focus-visible {outline:2px solid var(--gold);outline-offset:3px;}
#view-home .home-feature:is(:hover,:focus-within,[data-motion-paused="true"]) :is(img,.home-feature-slide),#view-home.hidden .home-feature :is(img,.home-feature-slide) {animation-play-state:paused;}
@keyframes home-feature-drift {from{transform:scale(1);}to{transform:scale(1.015);}}
@keyframes home-feature-cycle {0%,26%{opacity:1;}33.333%,93%{opacity:0;}100%{opacity:1;}}
@media(prefers-reduced-motion:reduce){#view-home .home-feature :is(img,.home-feature-slide){animation:none;will-change:auto;}#view-home .home-feature-slide{opacity:0;}#view-home .home-feature-slide:first-child{opacity:1;}}
#view-home .home-tags {display:flex;flex-wrap:wrap;gap:7px;}
#view-home .home-tag {font-size:11px;color:var(--brand);padding:2px 7px;border:1px solid var(--line);border-radius:4px;background:var(--panel);}
#view-home .home-tabs {display:flex;flex-wrap:wrap;gap:5px;margin:16px 20px 0;border-bottom:1px solid var(--line);padding-bottom:10px;}
#view-home .home-tabs button,#view-home .home-categories button {border:0;border-radius:6px;background:none;font:inherit;font-size:13px;min-height:32px;padding:6px 12px;color:var(--ink2);cursor:pointer;}
#view-home .home-tabs button[aria-selected="true"],#view-home .home-categories button[aria-pressed="true"] {background:var(--brand-l);color:var(--brand);font-weight:600;}
#view-home .home-news {height:480px;overflow:auto;padding:0 20px;scrollbar-width:thin;scrollbar-gutter:stable;position:relative;overscroll-behavior:contain;}
#view-home .home-news-item {display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);}
#view-home .home-news-item:hover {background:var(--home-soft);}
#view-home .home-news-item:last-child {border-bottom:0;}
#view-home .home-news-label {align-self:start;background:var(--brand-l);color:var(--brand);font-size:12px;font-weight:600;border-radius:6px;text-align:center;padding:6px 4px;line-height:1.6;font-variant-numeric:tabular-nums;}
#view-home .home-news-title {border:0;background:none;padding:0;font:inherit;font-weight:600;font-size:14px;text-align:left;color:var(--ink);cursor:pointer;line-height:1.6;}
#view-home .home-news-title:hover {color:var(--brand);}
#view-home .home-news-item p {font-size:12px;color:var(--ink2);margin:5px 0 7px;line-height:1.7;}
#view-home .home-news-meta {font-size:11px;color:var(--ink2);display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;line-height:1.7;}
#view-home .home-feed-status {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 20px;background:var(--home-soft);border-top:1px solid var(--line);font-size:11px;color:var(--ink2);}
#view-home .home-topics {padding:0 20px;}
#view-home .home-topic {display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);width:100%;border-top:0;border-left:0;border-right:0;background:none;text-align:left;font:inherit;cursor:pointer;}
#view-home .home-topic:last-child {border-bottom:0;}
#view-home .home-rank {color:var(--gold);font-size:21px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;}
#view-home .home-topic strong {font-size:13px;font-weight:600;color:var(--brand-d);}
#view-home .home-topic small {display:block;font-size:12px;color:var(--ink2);margin-top:6px;}
#view-home .home-source {margin:6px 20px 19px;padding:13px 14px;border:1px solid var(--line);border-radius:7px;background:var(--home-soft);}
#view-home .home-source b {font-size:12px;color:var(--brand-d);}
#view-home .home-source p {font-size:11px;color:var(--ink2);line-height:1.8;margin:6px 0 9px;}
#view-home .home-source a {font-size:12px;}
#view-home .home-knowledge {margin-top:20px;}
#view-home .home-search {max-width:260px;width:100%;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--panel);font:inherit;font-size:12px;color:var(--ink);}
#view-home .home-categories {display:flex;flex-wrap:wrap;gap:5px;padding:0 20px 14px;}
#view-home .home-articles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 20px 20px;}
#view-home .home-article {display:grid;grid-template-columns:88px 1fr;gap:14px;align-items:center;text-align:left;background:var(--panel);padding:14px;border:1px solid var(--line);border-radius:8px;font:inherit;color:var(--ink);cursor:pointer;min-width:0;transition:border-color .15s;}
#view-home .home-article:hover {border-color:var(--brand);}
#view-home .home-drawing {display:block;width:88px;height:88px;padding:10px;background:var(--home-soft);border-radius:6px;fill:none;stroke:var(--brand);stroke-width:1.6;}
#view-home .home-article h4 {font-size:14px;color:var(--brand-d);line-height:1.6;margin:5px 0;}
#view-home .home-article p {font-size:12px;color:var(--ink2);margin:0;line-height:1.7;}
#view-home .home-article small {font-size:11px;color:var(--ink2);}
#view-home .home-dashboard {margin-top:22px;}
#view-home .home-dashboard .home-section-head {padding:0 0 14px;}
#view-home .home-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
#view-home .home-stat {background:var(--panel);padding:17px 20px;border:1px solid var(--line);border-radius:8px;display:flex;justify-content:space-between;gap:10px;align-items:center;}
#view-home .home-stat label {font-size:12px;color:var(--ink2);}
#view-home .home-stat strong {display:block;font-size:26px;font-weight:600;color:var(--brand-d);font-variant-numeric:tabular-nums;margin:5px 0;}
#view-home .home-stat p {font-size:11px;color:var(--ink2);margin:0;}
#view-home .home-stat svg {height:35px;width:35px;stroke:var(--gold);fill:none;stroke-width:1.3;flex-shrink:0;}
#view-home .home-bottom {font-size:11px;color:var(--ink2);padding:16px 0 0;display:flex;justify-content:space-between;gap:15px;}
#view-home :is(button,a,input):focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
#view-home .home-empty {padding:36px 12px;font-size:13px;color:var(--ink2);grid-column:1/-1;}
#homeDetail {width:min(660px,calc(100vw - 32px));max-height:80vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:0;background:var(--panel);color:var(--ink);}
#homeDetail::backdrop {background:rgba(0,27,53,.42);}
#homeDetail .home-detail-head {padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px;}
#homeDetail h3 {font-size:18px;color:var(--brand-d);margin:0;}
#homeDetail .home-detail-body {padding:18px 24px 24px;font-size:13px;line-height:1.9;}
#homeDetail .home-detail-body p {margin:0 0 13px;color:var(--ink2);}
#homeDetail .home-detail-body h4 {color:var(--brand-d);font-size:14px;margin:14px 0 5px;}
#homeDetail .home-detail-note {padding:10px 12px;background:var(--panel2);border-radius:6px;font-size:12px;}
#homeDetail button {border:1px solid var(--line);background:var(--panel);color:var(--brand);border-radius:6px;font:inherit;padding:5px 10px;cursor:pointer;}
#homeDetail button:focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
@media(max-width:1250px) {#view-home .home-feature-copy {padding:18px;}#view-home .home-article {grid-template-columns:64px 1fr;gap:10px;padding:12px;}#view-home .home-drawing {width:64px;height:74px;}#view-home .home-feature h3 {font-size:17px;}}
@media(max-width:960px) {#view-home .home-grid {grid-template-columns:1fr;}#view-home .home-topics {display:grid;grid-template-columns:1fr 1fr;gap:0 20px;}#view-home .home-source {margin-top:12px;}#view-home .home-articles {grid-template-columns:1fr;}}
@media(max-width:600px) {#view-home .home-feature {grid-template-columns:1fr;}#view-home .home-feature img {max-height:155px;min-height:0;}#view-home .home-heading {align-items:start;}#view-home .home-date {white-space:normal;font-size:11px;}#view-home .home-section-head {flex-wrap:wrap;}#view-home .home-search {max-width:none;}#view-home .home-topics {grid-template-columns:1fr;}#view-home .home-stat {padding:12px;}#view-home .home-stat svg {display:none;}#view-home .home-feed-status,#view-home .home-bottom {flex-wrap:wrap;}}
@media(prefers-reduced-motion:reduce) {#view-home * {transition:none!important;}}
/* Library cockpit: distribution, coverage and actionable gaps. */
#view-home .hc-head-tools {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
#view-home a.home-stat {text-decoration:none;color:var(--brand);}
#view-home .hc-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;align-items:stretch;}
#view-home .hc-panel {background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px;min-width:0;}
#view-home .hc-panel h4 {margin:0 0 22px;color:var(--brand-d);font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#view-home .hc-panel h4>span {font-size:11px;font-weight:400;color:var(--ink2);}
#view-home .hc-composition {display:flex;align-items:center;gap:22px;}
#view-home .hc-ring {width:126px;height:126px;flex:0 0 126px;border-radius:50%;display:grid;place-items:center;}
#view-home .hc-ring>div {width:100px;height:100px;background:var(--panel);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;}
#view-home .hc-ring strong {font-size:27px;color:var(--brand-d);font-variant-numeric:tabular-nums;}
#view-home .hc-ring small {font-size:11px;color:var(--ink2);}
#view-home .hc-legend {flex:1;min-width:0;}
#view-home .hc-legend button {display:flex;align-items:center;gap:7px;width:100%;border:0;background:transparent;color:var(--ink2);padding:5px 0;font-size:12px;text-align:left;cursor:pointer;}
#view-home .hc-legend button i {width:7px;height:7px;border-radius:2px;flex-shrink:0;}
#view-home .hc-legend button span {flex:1;overflow-wrap:anywhere;}
#view-home .hc-legend button b {color:var(--brand-d);font-variant-numeric:tabular-nums;}
#view-home .hc-thumbs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:20px;}
#view-home .hc-thumbs a {min-width:0;color:var(--ink2);text-decoration:none;}
#view-home .hc-thumbs img {width:100%;height:50px;object-fit:cover;border-radius:5px;border:1px solid var(--line);}
#view-home .hc-thumbs span {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:5px;}
#view-home .hc-meters {display:flex;flex-direction:column;gap:16px;}
#view-home .hc-meter {border:0;background:transparent;text-align:left;padding:0;cursor:pointer;color:var(--ink);width:100%;}
#view-home .hc-meter>span {display:flex;justify-content:space-between;font-size:12px;gap:8px;}
#view-home .hc-meter b {color:var(--brand);font-variant-numeric:tabular-nums;}
#view-home .hc-track {height:6px;border-radius:4px;background:var(--line);overflow:hidden;margin:7px 0;}
#view-home .hc-track i {display:block;background:var(--brand);height:100%;border-radius:4px;}
#view-home .hc-meter small {display:flex;justify-content:space-between;gap:8px;color:var(--ink2);font-size:11px;flex-wrap:wrap;}
#view-home .hc-meter em {font-style:normal;color:var(--brand);}
#view-home .hc-footnote {font-size:11px;color:var(--ink2);line-height:1.7;margin:18px 0 0;}
#view-home .hc-todos button {display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;width:100%;padding:14px 0;cursor:pointer;color:var(--brand);}
#view-home .hc-todos button:first-child {padding-top:0;}
#view-home .hc-order {font-size:19px;color:var(--gold);font-variant-numeric:tabular-nums;align-self:flex-start;}
#view-home .hc-todos button>span:nth-child(2) {flex:1;min-width:0;}
#view-home .hc-todos strong {display:block;font-size:13px;}
#view-home .hc-todos small {display:block;color:var(--ink2);font-size:12px;margin-top:6px;line-height:1.6;}
#view-home .hc-empty {padding:24px 0;color:var(--ink2);font-size:13px;line-height:1.8;}
#homeDashboardList {width:min(720px,calc(100vw - 32px));max-height:80vh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:24px;}
#homeDashboardList::backdrop {background:rgba(12,35,55,.35);}
#homeDashboardList .hc-list-head {display:flex;justify-content:space-between;align-items:center;gap:16px;}
#homeDashboardList h3 {font-size:17px;margin:0;color:var(--brand-d);}
#homeDashboardList p {font-size:12px;color:var(--ink2);line-height:1.8;}
#homeDashboardList .hc-list-items a {display:flex;justify-content:space-between;gap:16px;text-decoration:none;color:var(--brand);padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere;}
#homeDashboardList small {display:block;color:var(--ink2);margin-top:5px;}
#homeDashboardList :is(a,button):focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
@media(max-width:1100px) {#view-home .hc-grid,#view-home .home-stats {grid-template-columns:repeat(2,minmax(0,1fr));}#view-home .hc-panel:last-child,#view-home .home-stat:last-child {grid-column:1/-1;}#view-home .hc-todos {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}#view-home .hc-todos button {padding-top:0;border-bottom:0;align-items:start;}}
@media(max-width:700px) {#view-home .hc-grid {grid-template-columns:1fr;}#view-home .hc-todos {display:block;}#view-home .hc-panel {padding:16px;}#view-home .home-stats {grid-template-columns:1fr;}#view-home .hc-head-tools {gap:8px;}#view-home .hc-composition {gap:16px;}}
