.fc-skills-directory {--skill-paper:#fffefa; --skill-line:#e0e4d9; color:var(--ink); min-width:0;}
.fc-skills-intro {display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; background:linear-gradient(110deg,#eef2e4,#f6f7f0); border:1px solid var(--skill-line); border-radius:16px;}
.fc-skills-intro h2 {margin:12px 0 0; font-size:28px; letter-spacing:-.6px; line-height:1.2;}
.fc-skills-intro p {margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.6;}
.fc-skills-summary {display:flex; gap:24px; padding-left:24px; border-left:1px solid #d5decb; flex-shrink:0;}
.fc-skills-summary strong {font-size:28px; font-family:var(--display); font-weight:500;}
.fc-skills-summary span {display:block; margin-top:4px; font-size:11px; font-family:var(--body); color:var(--muted); font-weight:400;}
.fc-skills-toolbar {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; margin:24px 0 16px;}
.fc-skills-tabs {display:flex; gap:4px; padding:4px; background:#e9ede1; border-radius:12px;}
.fc-skills-tabs button {display:flex; gap:8px; align-items:center; border:0; padding:8px 12px; border-radius:8px; background:transparent; color:#6c7464; font:600 12px var(--body); cursor:pointer;}
.fc-skills-tabs button[aria-pressed=true] {background:var(--skill-paper); color:var(--ink); box-shadow:0 1px 4px #2734230a;}
.fc-skills-tabs span {padding:4px 8px; background:#e9eedf; border-radius:8px; font-size:10px;}
.fc-skills-tools {gap:12px; min-width:0;}
.fc-skills-search {display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--skill-line); border-radius:10px; background:var(--skill-paper); min-width:0;}
.fc-skills-search svg {width:16px; height:16px; color:#78826b; flex:none;}
.fc-skills-search input {width:216px; min-width:0; border:0; background:transparent; color:var(--ink); font:12px var(--body); outline:0;}
.fc-skills-search:focus-within {outline:2px solid var(--green); outline-offset:2px;}
.fc-skills-workspace {display:grid; grid-template-columns:176px minmax(0,1fr); gap:24px;}
.fc-skills-categories {align-self:start; padding:16px 0; min-width:0;}
.fc-skills-categories h3 {font:600 11px var(--body); letter-spacing:1px; text-transform:uppercase; color:#89917f; margin:12px 0 12px; padding-left:12px;}
.fc-skills-categories nav {display:grid; gap:4px;}
.fc-skills-categories button {display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px; border:0; border-radius:8px; background:transparent; color:#6b7661; font:12px var(--body); text-align:left; cursor:pointer;}
.fc-skills-categories button[aria-pressed=true] {background:#e6edda; color:#354c2b; font-weight:600;}
.fc-skills-categories small {font-size:10px; color:#7b886d;}
.fc-skills-categories p {margin:24px 12px 0; font-size:11px; color:#8a9281; line-height:1.6;}
.fc-skills-content {min-width:0;}
.fc-skills-list-bar {display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 16px; border:1px solid var(--skill-line); border-bottom:0; border-radius:12px 12px 0 0; background:#f0f2ea; font-size:11px; color:#727d66;}
.fc-skills-list-bar label {display:flex; gap:8px; align-items:center; flex-shrink:0;}
.fc-skills-list-bar select {padding:4px 8px; border:1px solid #dce2d1; border-radius:8px; font:11px var(--body); color:#44583a; background:var(--skill-paper); max-width:144px;}
.fc-skills-main {display:grid; grid-template-columns:minmax(0,1fr); min-width:0;}
.fc-skills-main.has-detail {grid-template-columns:minmax(0,1fr) 336px; gap:16px;}
.fc-skill-rows {list-style:none; margin:0; padding:0; background:var(--skill-paper); border:1px solid var(--skill-line); border-radius:0 0 12px 12px; overflow:hidden; min-width:0;}
.fc-skill-row {display:flex; align-items:center; gap:16px; padding:24px; border-bottom:1px solid var(--skill-line); transition:background .15s;}
.fc-skill-row:last-child {border-bottom:0;}
.fc-skill-row:hover {background:#f8f9f3;}
.fc-skill-row[data-selected] {background:#f0f4e6; box-shadow:inset 3px 0 0 #749454;}
.fc-skill-glyph {display:grid; place-items:center; width:40px; height:40px; flex:none; background:#eff3e7; color:#657e50; border:1px solid #e2e9d6; border-radius:12px;}
.fc-skill-glyph svg {width:20px; height:20px;}
.fc-skill-info {min-width:0; flex:1;}
.fc-skill-name {display:flex; align-items:center; flex-wrap:wrap; gap:8px;}
.fc-skills-directory .fc-skill-name h3 {margin:0; font:600 14px var(--body); line-height:1.4; overflow-wrap:anywhere;}
.fc-skill-info p {margin:4px 0 0; font-size:12px; color:#7a8371; line-height:1.6; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.fc-skill-meta {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; font-size:10px; color:#8a9380; overflow-wrap:anywhere;}
.fc-skills-directory .fc-skill-source {display:inline-flex; align-items:center; border:1px solid #dde5d3; border-radius:6px; padding:4px 8px; font:600 9px var(--body); color:#627653; background:#f3f6ed;}
.fc-skill-installed {padding:4px 8px; border-radius:6px; background:#e9f0de; color:#567444; font-size:9px;}
.fc-skills-directory .fc-skill-origin {display:inline-flex; align-items:center; gap:4px; margin:0; color:#6c7e5d; font-size:10px;}
.fc-skill-origin svg {width:12px; height:12px; flex:none;}
.fc-skill-row-actions {gap:8px; margin-top:12px; justify-content:flex-end; flex-shrink:0;}
.fc-skill-row-actions .btn {display:inline-flex; gap:8px; align-items:center; font-size:11px; min-height:36px;}
.fc-skill-toggle {display:flex; gap:8px; align-items:center; padding:8px; color:#738565; font-size:11px; cursor:pointer;}
.fc-skill-toggle input {accent-color:#607e49; margin:0; width:16px; height:16px;}
.fc-skill-empty {padding:16px;}
.fc-skill-detail {align-self:start; position:sticky; top:16px; background:var(--skill-paper); border:1px solid var(--skill-line); border-radius:12px; padding:24px; min-width:0;}
.fc-skill-detail[hidden] {display:none;}
.fc-skill-detail-top {display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px;}
.fc-skills-directory .fc-github-preview {padding:0; border:0; border-radius:0; background:transparent; min-width:0;}
.fc-skills-directory .fc-github-preview h3 {font-size:22px; margin:12px 0 0; overflow-wrap:anywhere;}
.fc-skills-directory .fc-github-preview p {font-size:12px; margin:4px 0 0; color:#78836c; line-height:1.7; overflow-wrap:anywhere;}
.fc-skills-directory .fc-github-preview>a {display:inline-flex; align-items:center; gap:8px; color:#547241; font-size:11px; margin-top:16px; overflow-wrap:anywhere;}
.fc-github-preview>a svg {width:14px; height:14px; flex:none;}
.fc-skill-version {display:block; margin-top:8px; font:10px var(--body); color:#8a9380;}
.fc-skill-instructions {margin-top:24px; border-top:1px solid var(--skill-line); padding-top:16px;}
.fc-skill-instructions summary {font-size:12px; font-weight:600; color:#5d7350; cursor:pointer;}
.fc-skills-directory .fc-github-preview pre {white-space:pre-wrap; word-break:break-word; max-height:320px; overflow:auto; padding:12px; margin:12px 0 0; border:1px solid #e3e7dc; background:#f4f6ef; border-radius:8px; font-size:11px; line-height:1.7;}
.fc-skills-directory .fc-github-preview .fc-skill-preview-note {font-size:10px; margin-top:16px;}
.fc-skills-directory .fc-github-preview .row {gap:8px; margin-top:16px;}
.fc-github-preview .btn {max-width:100%; white-space:normal;}
.fc-skill-preview-loading {display:flex; align-items:center; gap:12px; font-size:12px; color:#7e8a72; min-height:120px;}
.fc-skill-preview-retry {margin-top:16px;}
.fc-skills-imports {margin-top:24px; border:1px solid var(--skill-line); border-radius:12px; background:var(--skill-paper); padding:16px 24px;}
.fc-skills-imports>summary {font:600 13px var(--body); cursor:pointer; color:#526648;}
.fc-skills-imports>summary span {font-size:11px; color:#8d9584; font-weight:400; margin-left:12px;}
.fc-skills-imports>summary svg {width:16px; height:16px; float:right;}
.fc-skills-import-grid {display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-top:24px;}
.fc-skills-import-grid section {min-width:0;}
.fc-skills-import-grid h3 {font-size:16px; margin:12px 0 0;}
.fc-skills-import-grid p {font-size:12px; line-height:1.6; color:var(--muted); margin-top:4px;}
.fc-skills-import-grid .row {gap:8px; margin-top:16px;}
.fc-skills-import-grid input[type=url] {width:100%; min-width:0;}
.fc-skills-import-grid #fc-skill-import {margin-top:16px;}
.fc-github-found {list-style:none; padding:0; margin:16px 0 0; border:1px solid var(--skill-line); border-radius:12px; overflow:hidden;}
.fc-github-found li {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:16px; border-bottom:1px solid var(--skill-line);}
.fc-github-found li:last-child {border:0;}
.fc-github-found strong {font-size:12px;}
.fc-github-found small {display:block; font-size:10px; color:var(--muted); margin-top:4px; overflow-wrap:anywhere;}
.fc-skills-capabilities {margin-top:16px; padding:16px 24px; color:#7a866e; font-size:11px;}
.fc-skills-capabilities summary {cursor:pointer;}
.fc-skills-capabilities summary span {margin-left:8px;}
.fc-skills-capabilities .fc-skill-tools {margin-top:16px;}
.fc-skills-directory button:focus-visible,.fc-skills-directory summary:focus-visible,.fc-skills-directory a:focus-visible {outline:2px solid var(--green); outline-offset:4px;}
.fc-skills-directory [role=alert]:empty {margin:0;}
@media(max-width:1280px) {
  .fc-skills-main.has-detail {grid-template-columns:minmax(0,1fr) 304px;}
  .has-detail .fc-skill-row {flex-wrap:wrap; padding:16px;}
  .has-detail .fc-skill-row-actions {width:100%; margin-top:12px; justify-content:flex-start;}
}
@media(max-width:960px) {
  .fc-skills-workspace {grid-template-columns:1fr; gap:16px;}
  .fc-skills-categories {padding:0;}
  .fc-skills-categories h3,.fc-skills-categories p {display:none;}
  .fc-skills-categories nav {display:flex; gap:8px; overflow:auto; padding:4px;}
  .fc-skills-categories button {white-space:nowrap; gap:12px; padding:8px 12px;}
  .fc-skills-main.has-detail {grid-template-columns:1fr; gap:16px;}
  .fc-skill-detail {position:static; order:-1;}
  .fc-skills-intro h2 {font-size:24px;}
}
@media(max-width:680px) {
  .fc-skills-intro {align-items:flex-start; flex-direction:column; padding:16px; gap:16px;}
  .fc-skills-summary {padding-left:0; border-left:0;}
  .fc-skills-summary strong {font-size:22px;}
  .fc-skills-summary span {display:inline; margin-left:8px;}
  .fc-skills-toolbar {align-items:stretch; flex-direction:column; gap:12px;}
  .fc-skills-tools {justify-content:space-between; flex-wrap:nowrap; gap:8px;}
  .fc-skills-search {flex:1; padding:8px;}
  .fc-skills-search input {width:100%;}
  .fc-skills-tabs {align-self:start;}
  .fc-skills-tools>.btn {padding:8px; font-size:10px; flex-shrink:0; gap:4px;}
  .fc-skill-row {padding:16px; gap:12px; flex-wrap:wrap; align-items:flex-start;}
  .fc-skill-glyph {width:32px; height:32px; border-radius:8px;}
  .fc-skill-info {flex-basis:calc(100% - 44px);}
  .fc-skill-row-actions {margin-top:12px; width:100%; justify-content:flex-end;}
  .has-detail .fc-skill-row-actions {justify-content:flex-end;}
  .fc-skill-detail {padding:16px;}
  .fc-skills-imports {padding:16px;}
  .fc-skills-imports>summary span {display:block; margin:4px 0 0 16px;}
  .fc-skills-import-grid {grid-template-columns:1fr; gap:24px;}
  .fc-skills-list-bar {padding:12px; gap:8px;}
  .fc-skills-list-bar [data-skills-count] {overflow-wrap:anywhere; min-width:0;}
}
@media(prefers-reduced-motion:reduce) {.fc-skill-row {transition:none;}}
