/* Explore, dashboard and global navigation. The asset names are stable for in-place upgrades. */
:root {
  --vf-line: var(--color-secondary); --vf-surface: var(--color-box-body);
  --vf-muted: var(--color-text-light-2); --vf-accent: var(--color-primary); --vf-radius: 12px;
}
.vf-catalog [hidden], .vf-create [hidden] { display:none!important; }
:is(.vf-catalog,.vf-sidebar,.vf-context-head,.vf-create,.vf-global-work,.vf-dash-head,.vf-resources) :is(a,button,summary,input):focus-visible {
  outline:2px solid var(--vf-focus,var(--color-primary)); outline-offset:3px;
}
#navbar { column-gap:10px; background:var(--color-nav-bg); }
#navbar #navbar-logo { display:inline-flex; align-items:center; gap:7px; padding-inline:6px; }
#navbar #navbar-logo::after, #navbar #navbar-logo::before { content:none!important; display:none!important; }
#navbar-logo img { width:32px; height:32px; }
.vf-wordmark { white-space:nowrap; color:var(--color-text-dark); font:700 15px/1 var(--fonts-regular); letter-spacing:.095em; }
.vf-wordmark small { font:500 14px/1 var(--fonts-regular); letter-spacing:-.035em; color:var(--color-text-light-1); }
.vf-popover { position:relative; flex:none; }
.vf-popover summary, .vf-btn, .vf-action { display:inline-flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-weight:550; text-decoration:none; }
.vf-popover summary { list-style:none; cursor:pointer; }
.vf-popover summary::-webkit-details-marker,.vf-sections-toggle::-webkit-details-marker { display:none; }
.vf-btn,.vf-popover summary { box-sizing:border-box; min-height:36px; padding:7px 12px; border-radius:7px; color:var(--color-text); background:var(--color-button); border:1px solid var(--vf-line); }
.vf-create > summary,.vf-btn.vf-primary { color:var(--color-primary-contrast); background:var(--vf-accent); border-color:var(--vf-accent); }
.vf-global-work > summary { background:transparent; border-color:transparent; }
.vf-popover[open] > summary,.vf-btn:hover { box-shadow:0 0 0 2px var(--color-primary-alpha-30); text-decoration:none; }
.vf-create-menu,.vf-global-menu {
  position:absolute; z-index:1200; inset-inline-end:0; top:calc(100% + 6px); min-width:190px; max-width:calc(100vw - 24px); padding:5px;
  background:var(--color-menu); border:1px solid var(--vf-line); border-radius:9px; box-shadow:0 10px 30px var(--color-shadow);
}
.vf-global-menu { inset-inline-start:0; inset-inline-end:auto; }
#navbar :is(.vf-create-menu,.vf-global-menu) a { display:flex; gap:9px; align-items:center; padding:9px 10px; color:var(--color-text); border-radius:5px; text-decoration:none; }
#navbar :is(.vf-create-menu,.vf-global-menu) a:is(:hover,:focus-visible,.active) { background:var(--color-hover); }
.vf-desktop-create { display:flex; align-items:center; }
@media(max-width:767.98px) {
  #navbar .vf-desktop-create,#navbar .navbar-left > .vf-global-work { display:none; }
  #navbar.navbar-menu-open .navbar-left > .vf-global-work { display:block; width:100%; }
  #navbar .vf-global-work .vf-global-menu { position:static; box-shadow:none; max-width:none; }
  #navbar .navbar-mobile-right { gap:3px; position:relative; }
  #navbar .navbar-mobile-right .vf-create { position:static; }
  #navbar .navbar-mobile-right .vf-create-menu { inset-inline-end:0; top:calc(100% + 4px); }
}
@media(max-width:420px) { #navbar .vf-wordmark { display:none; } #navbar .navbar-mobile-right > .item { padding-inline:5px; } }

.vf-shell { padding-block:clamp(16px,2.8vw,34px); }
.vf-directory-head,.vf-dash-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 20px; }
.vf-directory-head { position:relative; overflow:hidden; border:1px solid var(--vf-line); border-radius:var(--vf-radius); background:var(--color-box-header); margin-bottom:19px; padding:clamp(16px,2.6vw,28px); }
[data-theme="void-forge"] .vf-directory-head { background:radial-gradient(ellipse at 100% 100%,#28223b,transparent 51%),#15161e; }
.vf-directory-head h1,.vf-dash-head h1,.vf-home h1 { margin:0; color:var(--color-text-dark); font-size:clamp(26px,3.5vw,39px); font-weight:650; letter-spacing:-.045em; line-height:1.15; }
.vf-directory-head p,.vf-home p { color:var(--color-text-light-1); margin:6px 0 0; line-height:1.55; }
.vf-brand-art { display:grid; place-items:center; width:82px; height:56px; }
.vf-brand-art img { width:74px; height:74px; }
.vf-catalog { container:vf-catalog / inline-size; min-width:0; }
.vf-catalog .vf-search > .ui.menu { margin:0 0 14px; background:transparent; }
.vf-search form > .ui.input { min-width:min(100%,200px); }
.vf-result-bar,.vf-result-heading,.vf-view-choice,.vf-actions,.vf-dash-actions,.vf-badges,.vf-topics,.vf-meta,.vf-dash-title { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.vf-result-bar { justify-content:space-between; margin:0 0 12px; gap:9px; }
.vf-result-heading h2 { font-size:16px; line-height:1.3; font-weight:620; margin:0; color:var(--color-text-dark); }
.vf-total,.vf-chip,.vf-badges span,.vf-topic { display:inline-flex; align-items:center; gap:4px; line-height:1.4; border-radius:5px; font-size:12px; }
.vf-total { padding:1px 6px; background:var(--color-hover); color:var(--vf-muted); font-variant-numeric:tabular-nums; }
.vf-chip,.vf-topic { padding:2px 6px; background:var(--color-primary-alpha-10); color:var(--vf-accent); overflow-wrap:anywhere; }
.vf-view-choice { gap:2px; padding:3px; border:1px solid var(--vf-line); border-radius:8px; background:var(--color-box-header); }
.vf-view-choice button,.vf-pick { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:5px; background:transparent; color:var(--vf-muted); font:inherit; cursor:pointer; }
.vf-view-choice button { min-height:31px; padding:5px 10px; font-size:13px; }
.vf-view-choice button[aria-pressed="true"] { background:var(--color-active); color:var(--color-text-dark); }
.vf-catalog-columns,.vf-cards { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.vf-catalog-columns { align-items:start; }
.vf-results-column,.vf-card-title { min-width:0; }
.vf-card,.vf-panel { background:var(--vf-surface); border:1px solid var(--vf-line); border-radius:12px; min-width:0; }
.vf-card { display:flex; flex-direction:column; align-items:stretch; gap:9px; padding:16px; }
.vf-card[data-selected="true"] { border-color:var(--color-primary-alpha-50); }
.vf-card-heading,.vf-panel-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.vf-thumb,.vf-panel-thumb { width:54px; height:54px; box-sizing:border-box; flex:none; overflow:hidden; display:grid; place-items:center; border-radius:11px; border:1px solid var(--vf-line); color:var(--vf-accent); background:var(--color-primary-alpha-10); }
.vf-thumb img,.vf-panel-thumb img { display:block; width:100%; height:100%; object-fit:contain; }
.vf-thumb:has(img),.vf-panel-thumb:has(img) { background:var(--color-box-header); }
.vf-card h3,.vf-panel h2 { margin:1px 0 0; line-height:1.25; letter-spacing:-.026em; overflow-wrap:anywhere; }
.vf-card h3 { font-size:18px; font-weight:620; }
.vf-card h3 a,.vf-panel h2 a { color:var(--color-text-dark); }
.vf-owner { font:500 12px/1.4 var(--fonts-regular); color:var(--vf-muted); overflow-wrap:anywhere; }
.vf-pick { margin-inline-start:auto; align-self:start; min-height:30px; min-width:30px; }
.vf-pick[aria-pressed="true"] { color:var(--vf-accent); background:var(--color-primary-alpha-10); }
.vf-description,.vf-panel-body p { margin:0; color:var(--color-text-light-1); line-height:1.52; font-size:13px; overflow-wrap:anywhere; }
.vf-description { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.vf-badges span { color:var(--color-text-light-1); border:1px solid var(--vf-line); padding:1px 6px; }
.vf-meta { gap:4px 12px; color:var(--vf-muted); font-size:12px; }
.vf-meta a { display:inline-flex; align-items:center; gap:4px; color:inherit; }
.vf-meta .color-icon { width:8px; height:8px; }
.vf-card > .vf-actions { margin-top:auto; border-top:1px solid var(--vf-line); padding-top:6px; }
.vf-actions { gap:3px 15px; }
.vf-action { color:var(--vf-accent); font-size:13px; padding:4px 0; }
.vf-panel { padding:15px; }
.vf-panel-heading { padding-bottom:12px; border-bottom:1px solid var(--vf-line); color:var(--color-text-light-1); }
.vf-panel-thumb { width:35px; height:35px; border-radius:7px; }
.vf-panel-body { display:grid; gap:6px; padding-top:12px; }
.vf-panel h2 { font-size:20px; }
.vf-panel .vf-actions { padding-top:5px; }
.vf-empty-state { border:1px dashed var(--vf-line); border-radius:10px; text-align:center; padding:24px 14px; color:var(--vf-muted); }
.vf-empty-state h2 { font-size:18px; margin:8px; }
.vf-catalog[data-view="directory"] .vf-cards { grid-template-columns:minmax(0,1fr); gap:0; border-block-start:1px solid var(--vf-line); }
.vf-catalog[data-view="directory"] .vf-card { padding:9px 8px; gap:5px; background:transparent; border:0; border-block-end:1px solid var(--vf-line); border-radius:0; }
.vf-catalog[data-view="directory"] .vf-card[data-selected="true"] { background:var(--color-primary-alpha-10); }
.vf-catalog[data-view="directory"] .vf-thumb { width:37px; height:37px; border-radius:7px; }
.vf-catalog[data-view="directory"] .vf-card-heading { gap:8px; }
.vf-catalog[data-view="directory"] .vf-card h3 { font-size:15px; }
.vf-catalog[data-view="directory"] .vf-topics { display:none; }
.vf-catalog[data-view="directory"] .vf-description { -webkit-line-clamp:1; }
.vf-catalog[data-view="directory"] .vf-card > .vf-actions { border:0; margin:0; padding:0; }
@container vf-catalog (min-width:585px) { .vf-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container vf-catalog (min-width:650px) {
  .vf-catalog[data-view="directory"] .vf-card { display:grid; grid-template-columns:minmax(0,1fr) fit-content(42%); align-items:center; gap:4px 12px; }
  .vf-catalog[data-view="directory"] .vf-card-heading { grid-area:1/1; }
  .vf-catalog[data-view="directory"] .vf-card > .vf-actions { grid-area:1/2; justify-content:flex-end; }
  .vf-catalog[data-view="directory"] .vf-meta { grid-area:2/2; justify-content:flex-end; }
  .vf-catalog[data-view="directory"] .vf-description { grid-area:2/1; }
  .vf-catalog[data-view="directory"] .vf-badges { grid-column:1/-1; }
}
@container vf-catalog (min-width:940px) { .vf-catalog-columns.vf-with-panel { grid-template-columns:minmax(0,1fr) clamp(198px,20%,254px); gap:16px; } }
@container vf-catalog (max-width:939.98px) { .vf-panel,.vf-pick { display:none; } }
.vf-resources { display:none; }
.vf-resources:has(> :target),.vf-resources.vf-routed { display:block; }
.vf-resource { display:none; scroll-margin-top:18px; }
.vf-resource:target { display:flex; align-items:center; min-height:40px; padding:6px 12px; margin-block:0 12px; border-inline-start:3px solid var(--vf-accent); background:var(--color-primary-alpha-10); border-radius:4px; }
.vf-resource:target .vf-unavailable { color:var(--color-text-light-1); font-size:13px; }
.vf-dash-head { padding-block:19px 6px; }
.vf-dash-title { gap:7px 15px; }
.vf-dash-explore { display:inline-flex; align-items:center; gap:5px; margin-top:4px; font-size:13px; }
.vf-account-switch { display:inline-flex; vertical-align:middle; max-width:100%; }
.vf-account-switch .ui.secondary.menu { margin:0; background:transparent; flex-wrap:wrap; }
.vf-account-switch .ui.secondary.menu > .item { margin:0; padding:5px 8px; }
.page-content > .vf-account-switch { margin-inline:var(--vf-gutter,16px); }
.vf-dash-grid { margin-bottom:24px; }
.vf-dash-grid .dashboard-repos .repo-owner-name-list li { flex-wrap:wrap; }
.vf-dash-project-actions { display:flex; align-items:center; gap:14px; width:100%; padding:2px 9px 1px 27px; font-size:12px; }
.vf-home-body { padding-block:clamp(35px,8vw,95px); }
.vf-home-body > .vf-actions { margin-top:17px; }
@media(max-width:480px) { .vf-brand-art { display:none; } .vf-card { padding:13px; } }
@media(pointer:coarse) {
  .vf-popover > summary,#navbar :is(.vf-create-menu,.vf-global-menu) a,.vf-view-choice button,.vf-actions a,.vf-resource a,.vf-btn { min-height:44px; }
  .vf-dash-project-actions a { display:inline-flex; align-items:center; min-height:36px; }
}
