/* The project browser borrows the portfolio desktop's window and file-list language. */
.explorer-ready { display:flex; flex-direction:column; height:100%; min-height:0; padding:0; }
.explorer-ready .work-heading, .explorer-ready .work-intro { display:none; }
.project-explorer { display:grid; grid-template-columns:minmax(220px, 270px) minmax(0, 1fr); flex:1; min-height:0; background:#f3f6fa; }
.explorer-sidebar { min-height:0; overflow:auto; background:#e8edf5; border-right:1px solid #bbc7d7; }
.explorer-sidebar-header { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:center; padding:14px 14px 12px; border-bottom:1px solid #c7d1df; background:#e8edf5; font-size:13px; }
.explorer-sidebar-header span { color:#6b7b91; font:10px Consolas, monospace; }
.explorer-list { display:grid; gap:2px; padding:8px; }
.explorer-list-group { margin:16px 8px 5px; color:#708099; letter-spacing:.09em; font:10px Consolas, monospace; }
.explorer-row { display:flex; align-items:center; gap:10px; width:100%; padding:9px; border:1px solid transparent; border-radius:4px; background:transparent; text-align:left; }
.explorer-row:hover { background:#dbe5f2; }
.explorer-row[aria-pressed="true"] { color:#193c79; background:#d3e1f6; border-color:#aabfe0; box-shadow:inset 0 1px #fff; }
.explorer-icon { display:grid; place-items:center; flex:none; width:38px; height:38px; filter:drop-shadow(1px 2px 1px #314b6933); }
.explorer-icon svg { display:block; width:100%; height:100%; }
.explorer-row-text { min-width:0; display:grid; gap:3px; }
.explorer-row-text strong { overflow:hidden; text-overflow:ellipsis; font-size:12px; line-height:1.3; }
.explorer-row-text small { overflow:hidden; color:#6b7c92; font:9px/1.3 Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.explorer-detail { display:flex; flex-direction:column; min-width:0; min-height:0; background:#fff; }
.explorer-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; min-height:52px; padding:9px 20px; background:#f5f7fa; border-bottom:1px solid #d2dbe6; }
.explorer-breadcrumb { flex:1; min-width:0; color:#687b92; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.explorer-breadcrumb strong { color:#283f5e; }
.explorer-open, .explorer-back { border:1px solid #a3b6d1; border-radius:4px; padding:8px 11px; color:#244a88; background:linear-gradient(#fff,#e5edf8); box-shadow:inset 0 1px #fff; font-size:11px; font-weight:700; }
.explorer-open:hover, .explorer-back:hover { background:#dce9fa; }
.explorer-back { display:none; }
.explorer-detail-content { flex:1; min-height:0; overflow:auto; padding:22px; }
.explorer-detail .projects-grid { display:block; }
.explorer-detail .project-card { display:flex; width:100%; max-width:850px; margin:0 auto; border:1px solid #c8d4e3; box-shadow:0 5px 18px #254a7510; }
.explorer-detail .project-card[hidden] { display:none!important; }
.explorer-detail .card-header { padding:22px; }
.explorer-detail .card-header h3 { font-size:24px; }
.explorer-detail .card-header .project-pitch { font-size:14px; }
.explorer-detail .project-media > .screen-button { height:auto; max-height:360px; aspect-ratio:16 / 9; }
.explorer-detail .project-media > .screen-button img { object-fit:contain; }
.explorer-detail .project-body { padding:22px; }
.explorer-detail .project-description { font-size:14px; }
.explorer-detail .plugin-workflow-note { max-width:850px; margin:20px auto 0; }
.explorer-sidebar .repository-details { padding:16px 14px; margin:10px 0 0; }
.explorer-sidebar .repository-details > summary span { margin-left:0; }
.explorer-sidebar .stats-cards, .explorer-sidebar .stats-charts, .explorer-sidebar .project-bars { grid-template-columns:1fr; }
@media (max-width:700px) {
  .project-explorer { display:block; position:relative; }
  .explorer-sidebar, .explorer-detail { height:100%; }
  .explorer-sidebar { border:0; }
  .project-explorer[data-view="list"] .explorer-detail, .project-explorer[data-view="detail"] .explorer-sidebar { display:none; }
  .explorer-back { display:inline-flex; }
  .explorer-toolbar { padding:9px 12px; }
  .explorer-breadcrumb { flex-basis:100%; order:3; }
  .explorer-open { margin-left:auto; }
  .explorer-detail-content { padding:12px; }
  .explorer-detail .card-header, .explorer-detail .project-body { padding:16px; }
  .explorer-detail .card-header h3 { font-size:21px; }
  .explorer-detail .project-media > .screen-button { max-height:230px; }
}

/* Dashboard and grouped project folders */
.explorer-overview { display:flex; align-items:center; gap:10px; width:calc(100% - 16px); margin:8px 8px 0; padding:10px; border:1px solid transparent; border-radius:4px; background:transparent; color:#314c73; font-size:12px; font-weight:700; text-align:left; }
.explorer-overview span { color:#41629f; font-size:20px; line-height:1; }
.explorer-overview:hover, .explorer-overview[aria-current="page"] { background:#d3e1f6; border-color:#aabfe0; }
.explorer-folder { border-bottom:1px solid #d7dfea; }
.explorer-folder > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; padding:12px 8px; color:#526781; font-size:11px; font-weight:700; }
.explorer-folder > summary:before { content:'▸'; color:#7290b5; }
.explorer-folder[open] > summary:before { content:'▾'; }
.explorer-folder > summary span { flex:1; }
.explorer-folder > summary small { color:#778aa3; font:10px Consolas,monospace; }
.explorer-folder .explorer-row { padding-left:14px; }
.explorer-dashboard { max-width:1100px; margin:0 auto; }
.dashboard-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:4px 0 22px; border-bottom:1px solid #d7e0eb; }
.dashboard-heading h2 { margin:0 0 7px; font-size:27px; }
.dashboard-heading p:last-child { color:#65758a; font-size:13px; line-height:1.6; }
.dashboard-date { flex:none; padding:8px 10px; border:1px solid #d4deeb; background:#f4f7fb; color:#71829b; font:9px/1.55 Consolas,monospace; letter-spacing:.04em; }
.dashboard-date strong { color:#405d85; font-size:10px; }
.dashboard-section-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:6px; margin:25px 0 12px; }
.dashboard-section-heading h3 { margin:0; font-size:15px; }
.dashboard-section-heading span { color:#75849a; font-size:10px; }
.explorer-dashboard > .stats-cards { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.explorer-dashboard > .stats-cards .stats-card { padding:14px; border-top:3px solid #7291c1; }
.explorer-dashboard > .stats-cards .stats-card strong { font-size:24px; }
.dashboard-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.dashboard-group { border:1px solid #cfdae8; border-radius:4px; background:#fff; padding:15px; box-shadow:0 2px 6px #304b6d0b; }
.dashboard-group header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.dashboard-group h4 { margin:0; font-size:14px; }
.dashboard-group header span { flex:none; color:#76869c; font:10px Consolas,monospace; }
.dashboard-group > p { margin:7px 0 10px; color:#687b91; font-size:11px; line-height:1.5; }
.dashboard-projects { display:grid; gap:2px; }
.dashboard-project { display:flex; align-items:center; gap:8px; padding:6px; border:1px solid transparent; border-radius:3px; background:transparent; text-align:left; color:#315483; font-size:12px; font-weight:700; }
.dashboard-project:hover { background:#edf3fb; border-color:#d3e0f1; }
.dashboard-project .explorer-icon { width:28px; height:28px; }
.dashboard-project span:last-child { min-width:0; }
.explorer-dashboard .portfolio-stats { margin:25px 0 0; }
.dashboard-browse { display:none; }
@media (max-width:700px) {
 .project-explorer[data-view="dashboard"] .explorer-sidebar { display:none; }
 .project-explorer[data-view="dashboard"] .explorer-detail { display:flex; }
 .dashboard-heading { flex-wrap:wrap; }
 .dashboard-browse { display:inline-block; margin:15px 0 0; padding:9px 11px; border:1px solid #a3b6d1; border-radius:4px; color:#244a88; background:linear-gradient(#fff,#e5edf8); font-size:11px; font-weight:700; }
 .explorer-dashboard > .stats-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .dashboard-groups { grid-template-columns:1fr; }
 .dashboard-date { font-size:9px; }
}
@container (max-width:500px) { .explorer-dashboard .stats-charts { grid-template-columns:1fr; } }

/* Snapshot figures and bars settle into place as they enter the scroll pane. */
.stats-animate { transition: opacity .55s ease, transform .55s ease; opacity: .55; transform: translateY(8px); }
.stats-animate.stats-revealed { opacity: 1; transform: translateY(0); }
.stats-animate .composition-bar span, .stats-animate .project-meter span { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.stats-animate.stats-revealed .composition-bar span, .stats-animate.stats-revealed .project-meter span { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .stats-animate, .stats-animate .composition-bar span, .stats-animate .project-meter span { transition: none; opacity: 1; transform: none; } }
