/* Home-only presentation: native project operations remain authoritative. */
body.yt9-home { --home-radius:16px; --home-gap:20px; }
.yt9-home .topbar { max-width:1100px; margin:auto; padding:36px 0 28px; flex-wrap:wrap; gap:12px; background:transparent; backdrop-filter:none; }
.yt9-home .title-block { flex:1 0 100%; margin-bottom:10px; }
.yt9-home .title-block h1 { font-size:34px; letter-spacing:-1px; }
.yt9-home .title-block p { font-size:14px; }
.yt9-home .mode-badge { font-weight:600; text-decoration:none; }
.yt9-home main.project-index { padding-top:28px; }
.yt9-home #yt9HomeShortcuts, .yt9-home #yt9SkillRegistry.ysr, .yt9-home #yt9ImageStyleLibrary { width:100%; margin:0 0 32px; }
.yt9-home #yt9HomeShortcuts .yhs-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.yt9-home #yt9HomeShortcuts .yhs-card { grid-template-columns:36px 1fr 16px; gap:12px; min-height:152px; padding:20px; border-color:var(--line); border-radius:var(--home-radius); align-content:start; }
.yt9-home #yt9HomeShortcuts .yhs-icon { width:36px;height:36px; }
.yt9-home #yt9HomeShortcuts .yhs-copy { grid-column:1/-1; grid-row:2; }
.yt9-home #yt9HomeShortcuts .yhs-arrow { grid-column:3; grid-row:1; font-size:18px; }
.yt9-home #yt9HomeShortcuts .yhs-title { font-size:16px; line-height:1.5; letter-spacing:-.3px; }
.yt9-home #yt9HomeShortcuts .yhs-description { font-size:12px; line-height:1.7; }
.yt9-home #yt9SkillRegistry.ysr, .yt9-home #yt9ImageStyleLibrary { padding:26px; border-radius:var(--home-radius); border-color:var(--line); background:var(--panel-3,#101920); }
.yt9-home .ysr-title, .yt9-home #yt9ImageStyleLibrary h2, .yt9-home .project-index-heading h2 { font-size:24px; line-height:1.4; letter-spacing:-.6px; margin:6px 0 8px; }
.yt9-home .ysr-eyebrow, .yt9-home .isl-kicker { font-size:10px; font-weight:800; letter-spacing:.15em; color:var(--gold); }
.yt9-home .ysr-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.yt9-home .ysr-card { padding:20px; border-radius:12px; }
.yt9-home .ysr-name { margin:12px 0 6px; line-height:1.6; }
.yt9-home .ysr-card-title { min-height:50px; font-size:16px; }
.yt9-home .ysr-card > .ysr-card-description { min-height:84px; margin:10px 0 16px; }
.yt9-home .home-skill-details { border-top:1px solid var(--line); padding:12px 0; margin-top:auto; font-size:12px; }
.yt9-home .home-skill-details > summary { cursor:pointer; color:var(--blue); line-height:1.7; }
.yt9-home .home-skill-details .ysr-priority-section { margin:16px 0; }
.yt9-home .home-skill-details .ysr-card-description { margin:8px 0; }
.yt9-home .ysr-invocation { margin:0 0 12px; padding:10px 12px; }
.yt9-home .ysr-card > .ysr-link { margin:0 0 12px; }
.yt9-home .ysr-card-meta { margin-top:0; flex-wrap:wrap; line-height:1.7; gap:4px 8px; }
.yt9-home .ysr-summary { gap:8px 16px; }
.yt9-home #yt9ImageStyleLibrary > .isl-muted { margin:0; font-size:13px; }
.yt9-home #yt9ImageStyleLibrary .isl-card { grid-template-columns:210px minmax(0,1fr); align-items:start; gap:26px; padding-top:24px; margin-top:22px; border-top:1px solid var(--line); }
.yt9-home #yt9ImageStyleLibrary .isl-card img { display:block; width:210px; height:280px; max-height:none; object-fit:contain; border:1px solid var(--line); border-radius:12px; }
.yt9-home #yt9ImageStyleLibrary h3 { margin:0 0 8px; font-size:19px; }
.yt9-home #yt9ImageStyleLibrary p { font-size:13px; line-height:1.8; }
.yt9-home #yt9ImageStyleLibrary small { display:block; font:11px/1.7 ui-monospace,monospace; color:var(--muted); overflow-wrap:anywhere; }
.yt9-home #yt9ImageStyleLibrary .isl-actions { margin:18px 0; }
.yt9-home #yt9ImageStyleLibrary .isl-actions > * { min-height:40px; font-size:12px; }
.yt9-home #yt9ImageStyleLibrary details { border-top:1px solid var(--line); padding-top:12px; font-size:12px; }
.yt9-home #yt9ImageStyleLibrary summary { color:var(--blue); cursor:pointer; }
.yt9-home #yt9ImageStyleLibrary .isl-status:empty { display:none; }
.yt9-home .project-index-heading { justify-content:flex-start; flex-wrap:wrap; align-items:center; margin:44px 0 18px; }
.yt9-home .project-index-heading .mode-badge { margin-left:auto; }
.yt9-home #projectCount { padding:5px 10px; border-radius:6px; background:var(--panel); }
.yt9-home .home-project-controls { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.yt9-home .home-project-filters { display:flex; gap:6px; flex-wrap:wrap; }
.yt9-home .home-project-controls button { border:1px solid var(--line); border-radius:8px; background:var(--panel); padding:9px 14px; color:var(--muted); font-size:12px; cursor:pointer; }
.yt9-home .home-project-controls button[aria-pressed="true"] { color:var(--gold); border-color:rgb(240 202 104 / .4); background:rgb(240 202 104 / .07); }
.yt9-home .home-project-search { min-width:0; width:280px; max-width:100%; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); font-size:13px; }
.yt9-home .home-project-note { margin:0 0 16px; color:var(--muted); font-size:12px; }
.yt9-home .project-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.yt9-home .project-entry[hidden] { display:none; }
.yt9-home .project-card { border-radius:14px; padding:22px; min-height:205px; grid-template-rows:auto 1fr auto; gap:22px; transition:border-color .15s,background .15s,transform .15s; }
.yt9-home .project-card:hover { background:var(--panel-2); }
.yt9-home .project-card-top { padding-right:0; justify-content:flex-start; flex-wrap:wrap; }
.yt9-home .project-date { letter-spacing:.04em; }
.yt9-home .project-status { font-size:10px; padding:4px 8px; font-weight:600; background:rgb(240 202 104 / .06); }
.yt9-home .project-status.complete { background:rgb(130 201 167 / .06); }
.yt9-home .project-name { padding-right:4px; font-size:18px; line-height:1.65; letter-spacing:-.3px; word-break:keep-all; align-self:start; }
.yt9-home .project-card-bottom { border-top:1px solid var(--line); padding-top:14px; padding-right:28px; gap:8px; flex-wrap:wrap; font-size:11px; }
.yt9-home .project-card-bottom > span:last-child { color:var(--blue); }
.yt9-home .project-delete-button { top:auto; bottom:14px; right:12px; width:30px; height:30px; min-height:30px; }
.yt9-home #loadMoreProjects { min-height:44px; padding:10px 24px; border-radius:8px; }
@media(max-width:1150px) { .yt9-home .topbar { width:calc(100% - 48px); } .yt9-home #yt9HomeShortcuts .yhs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .yt9-home .ysr-grid,.yt9-home .project-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .yt9-home .topbar { width:calc(100% - 32px); padding:24px 0; flex-direction:row; align-items:center; }
 .yt9-home .title-block h1 { font-size:28px; }
 .yt9-home main.project-index { width:calc(100% - 32px); padding-top:24px; }
 .yt9-home #yt9HomeShortcuts,.yt9-home #yt9SkillRegistry.ysr,.yt9-home #yt9ImageStyleLibrary { margin-bottom:24px; }
 .yt9-home #yt9HomeShortcuts .yhs-grid { gap:12px; }
 .yt9-home #yt9HomeShortcuts .yhs-card { padding:16px; gap:10px; }
 .yt9-home #yt9HomeShortcuts .yhs-title { font-size:14px; }
 .yt9-home #yt9HomeShortcuts .yhs-description { font-size:11px; word-break:normal; }
 .yt9-home #yt9SkillRegistry.ysr,.yt9-home #yt9ImageStyleLibrary { padding:18px; }
 .yt9-home .ysr-grid,.yt9-home .project-list { grid-template-columns:minmax(0,1fr); }
 .yt9-home .ysr-card-title,.yt9-home .ysr-card > .ysr-card-description { min-height:0; }
 .yt9-home #yt9ImageStyleLibrary .isl-card { grid-template-columns:minmax(0,1fr); gap:20px; }
 .yt9-home #yt9ImageStyleLibrary .isl-card img { width:100%; height:300px; }
 .yt9-home .project-index-heading { gap:10px; margin-top:32px; }
 .yt9-home .project-index-heading .mode-badge { margin-left:0; }
 .yt9-home .home-project-search { width:100%; }
 .yt9-home .project-card { min-height:190px; }
 .yt9-home .ysr-title,.yt9-home #yt9ImageStyleLibrary h2,.yt9-home .project-index-heading h2 { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) { .yt9-home .project-card { transition:none; } .yt9-home .project-card:hover { transform:none; } }
.yt9-home .ysr-card-meta { margin-top:auto; }
.yt9-home .home-skill-details ~ .ysr-card-meta { margin-top:0; }
