:root{--accent:#15735c;--accent-dark:#105c49;--accent-soft:#eaf4ef;--ink:#202827;--muted:#73807c;--line:#e5e9e5;--bg:#f7f8f5;--panel:#fff;--sidebar:#172d29;--radius:14px;font-family:Segoe UI,"Microsoft YaHei",PingFang SC,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a,select{cursor:pointer}button{color:inherit}button:disabled{cursor:wait;opacity:.6}button{border:0}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #62b99c;outline-offset:3px}input:focus-visible,textarea:focus-visible{outline:2px solid #62b99c;outline-offset:2px}svg{width:20px;height:20px;stroke-width:1.65;flex-shrink:0}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:var(--sidebar);color:#b9c9c2;padding:28px 18px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;color:#f1f7f2;padding:0 9px;font-size:17px;font-weight:600;letter-spacing:.3px;margin-bottom:41px}.brand small{display:block;font-size:8px;letter-spacing:1.7px;font-weight:400;color:#86a59a;margin-top:7px}.brand-mark{width:35px;height:35px;background:#ddf2b3;color:#253e30;display:grid;place-items:center;border-radius:10px}.brand-mark svg{width:23px;height:23px;stroke-width:2}.sidebar-section-title{font-size:11px;letter-spacing:1px;color:#8ca69b;padding:0 13px;margin-bottom:12px}.category-heading{margin-top:30px;display:flex;justify-content:space-between}.category-heading span{font-size:10px}.nav-group{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;background:none;color:#bdcdc6;border-radius:8px;text-align:left;font-size:12px;min-height:41px;transition:background .15s}.nav-item:hover{background:#25423a;color:#fff}.nav-item.active{background:#2a4b40;color:#e9f7df}.nav-item.active svg{color:#d3eba8}.nav-item svg{width:17px;height:17px}.nav-item .nav-count{margin-left:auto;font-size:10px;opacity:.7;font-variant-numeric:tabular-nums}.sidebar-bottom{margin-top:auto;padding:32px 8px 0;display:flex;align-items:center;gap:10px;font-size:11px}.sidebar-bottom small{display:block;color:#88a397;font-size:9px;margin-top:5px}.sidebar-bottom .icon-btn{margin-left:auto;color:#adc5b8;min-width:28px;width:28px}.local-dot,.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#9dc986;flex-shrink:0}.main-shell{margin-left:236px;width:calc(100% - 236px)}.topbar{height:74px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--panel)}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.breadcrumb svg{width:17px}.breadcrumb strong{font-weight:500;color:var(--ink)}.slash{color:#ccd3cb}.top-actions{display:flex;gap:14px;align-items:center}.installed-indicator{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted)}.installed-indicator .status-dot{background:var(--accent);width:5px;height:5px}.icon-btn{background:transparent;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border-radius:7px;color:var(--muted);transition:background .15s}.icon-btn:hover{background:#eef2ed;color:var(--ink)}.icon-btn svg{width:17px;height:17px}#mobileHelp{display:none}.workspace{display:grid;grid-template-columns:minmax(430px,1fr) 372px;align-items:start}.library{padding:34px 32px 24px;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--accent);display:flex;align-items:center;gap:6px;margin-bottom:12px}.small-square{width:5px;height:5px;background:var(--accent)}h1{font-size:25px;line-height:1.45;letter-spacing:-.7px;margin:0 0 9px;font-weight:600}.page-heading p{font-size:11px;line-height:1.8;margin:0;color:var(--muted)}.heading-icon{display:grid;place-items:center;border:1px solid #dce5da;width:44px;height:44px;border-radius:12px;flex-shrink:0;color:#95a993;background:#f0f3eb}.heading-icon svg{width:23px;height:23px}.featured{background:#ecf0e3;border:1px solid #e0e6d6;border-radius:var(--radius);min-height:166px;display:flex;overflow:hidden;position:relative;margin-bottom:25px;align-items:center;gap:22px;padding:24px}.featured-art{width:105px;height:115px;flex-shrink:0;background:#214d3b;border-radius:12px;color:#e4efbd;position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:12px}.featured-art>svg{position:absolute;top:13px;right:12px;width:20px;height:20px}.featured-art>span{font-family:Georgia,serif;font-size:62px;line-height:.95;letter-spacing:-6px;font-weight:400}.featured-copy{min-width:0}.new-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#587452;letter-spacing:.6px}.new-label>span{width:5px;height:5px;border-radius:50%;background:#6f934a}.featured h2{font-size:18px;letter-spacing:-.4px;margin:10px 0 7px;font-weight:600}.featured p{font-size:11px;line-height:1.7;color:#6a7962;margin:0 0 11px}.text-action{background:none;padding:0;display:flex;align-items:center;gap:6px;font-size:11px;color:#28563b;font-weight:600}.text-action svg{width:15px;height:15px}.text-action:hover{color:#0b3222}.search-row{display:flex;gap:7px;align-items:center;margin-bottom:23px}.search{background:#fff;border:1px solid #dde3dc;border-radius:9px;display:flex;align-items:center;padding:0 13px;gap:10px;height:43px;flex:1;min-width:0}.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #e1ede4}.search svg{width:17px;height:17px;color:#8a958b}.search input{border:none;background:none;min-width:0;flex:1;outline:none;font-size:12px;height:100%;color:var(--ink)}.search input:focus-visible{outline:none}.search input::placeholder{color:#99a298}.search kbd{display:grid;place-items:center;border:1px solid var(--line);width:21px;height:21px;font-family:inherit;font-size:11px;color:#8e988c;border-radius:4px}.search input::-webkit-search-cancel-button{display:none}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.list-toolbar>div{display:flex;gap:10px;align-items:center}.list-toolbar h2{font-size:12px;font-weight:600;margin:0}.count-label{font-size:10px;color:#8c978c}.sort{display:flex;gap:6px;align-items:center;color:#899585}.sort svg{width:13px;height:13px}.sort select{border:0;background:transparent;color:#7b8877;font-size:10px;max-width:130px;padding:3px}.skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skill-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 17px 0;min-height:176px;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s;cursor:pointer}.skill-card:hover{border-color:#b2c9b8;box-shadow:0 3px 12px #163a2510}.skill-card.selected{border-color:#469879;box-shadow:0 0 0 1px #469879}.card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.skill-icon{width:35px;height:35px;border-radius:9px;background:#edf3eb;color:#3c745b;display:grid;place-items:center;flex-shrink:0}.skill-icon svg{width:19px;height:19px}.card-head>.tiny-badge{margin-left:auto;font-size:9px;white-space:nowrap}.card-fav{margin-left:auto;width:26px;height:26px;min-width:26px}.card-fav svg{width:14px;height:14px}.card-fav[aria-pressed="true"]{color:var(--accent)}.card-fav[aria-pressed="true"] svg{fill:#dbeedf}.card-open{background:none;text-align:left;padding:0;margin:0 0 7px;align-self:flex-start;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.card-summary{font-size:10px;line-height:1.85;color:#7a8679;margin:0 0 14px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:37px}.card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eff1ed;padding:10px 0;gap:5px}.category-tag{font-size:9px;color:#92a08a;white-space:nowrap}.card-copy{padding:0;background:none;color:#637762;display:flex;align-items:center;gap:4px;font-size:9px;min-height:23px;white-space:nowrap}.card-copy svg{width:12px;height:12px}.card-copy:hover{color:var(--accent)}.tiny-badge{color:#408269;background:#eef7ec;padding:3px 5px;border-radius:4px}.category-divider{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:14px 0 0;color:#7d8e7b;font-size:10px}.category-divider:first-child{margin-top:0}.category-divider span:last-child{color:#a3ada0;font-size:9px}.category-divider:after{content:'';flex:1;height:1px;background:var(--line)}.empty-state{text-align:center;padding:70px 12px;color:#8a9885}.empty-state>svg{width:33px;height:33px}.empty-state h3{font-size:15px;color:var(--ink);font-weight:500}.empty-state p{font-size:12px;line-height:1.8;margin-bottom:24px}.library-footer{display:flex;justify-content:space-between;gap:15px;color:#8f9b88;font-size:9px;border-top:1px solid var(--line);padding-top:18px;margin-top:26px;line-height:1.8}.detail{border-left:1px solid var(--line);background:#fff;min-height:calc(100vh - 74px);position:sticky;top:0;max-height:100vh;overflow-y:auto;padding:27px 25px 0;scrollbar-width:thin;scrollbar-color:#dee5db transparent;outline:none}.detail-topline{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#93a18a;letter-spacing:1.5px;margin-bottom:23px}.detail-close{display:none}.detail-identity{display:flex;align-items:center;gap:14px;margin-bottom:18px}.detail-identity .skill-icon{width:53px;height:53px;border-radius:13px;background:#e8f1e7}.detail-identity .skill-icon svg{width:28px;height:28px}.detail-identity h2{font-size:18px;margin:0 0 7px;font-weight:600;line-height:1.5;letter-spacing:-.4px;overflow-wrap:anywhere}.skill-name{font-family:Consolas,monospace;font-size:10px;color:#8a9789;overflow-wrap:anywhere}.detail-tags{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.detail-tag{font-size:9px;color:#577a58;border:1px solid #e0e9dc;padding:4px 7px;border-radius:5px}.detail-tag.new{background:#eaf4e0;color:#527740;border-color:transparent}.detail-description{font-size:12px;line-height:1.95;color:#71806d;margin:0 0 23px}.detail-section{margin:0 0 22px}.detail-section h3{font-size:11px;margin:0 0 12px;font-weight:600;display:flex;align-items:center;gap:6px}.detail-section h3 svg{width:14px;height:14px;color:#5b826b}.features{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:9px}.features li{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.85;color:#71806d}.features li svg{width:13px;height:13px;margin-top:3px;color:#5e8d6e}.usage{counter-reset:steps;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}.usage li{counter-increment:steps;display:flex;gap:9px;align-items:flex-start;font-size:10px;line-height:1.8;color:#71806d}.usage li:before{content:counter(steps,decimal-leading-zero);font-family:Consolas,monospace;color:#9bab92;flex-shrink:0;font-size:9px;margin-top:1px}.prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.prompt-heading h3{margin-bottom:10px}.prompt-heading .reset-prompt{background:none;color:#95a28c;font-size:9px;padding:0 0 10px}.reset-prompt:hover{color:var(--accent)}.prompt-label{font-size:9px;color:#829578;margin:0 0 9px;line-height:1.75}.prompt-editor{width:100%;min-height:232px;resize:vertical;max-height:600px;border:1px solid #e0e7da;background:#f7f9f3;border-radius:9px;padding:14px;font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px;line-height:1.9;color:#536850;display:block}.primary-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;border-radius:8px;min-height:40px;padding:10px 17px;font-size:11px;font-weight:500;transition:background .15s}.primary-btn:hover{background:var(--accent-dark)}.primary-btn svg{width:15px;height:15px}.copy-primary{width:100%;margin-top:10px}.secondary-btn{padding:10px 14px;border:1px solid #dce5d5;border-radius:8px;background:#fff;font-size:11px;color:#567550}.secondary-btn:hover{background:#f3f7ef}.detail-note{font-size:9px;color:#8b9679;line-height:1.9;padding-left:10px;border-left:2px solid #cddbb9;margin:18px 0 24px}.source-details{border-top:1px solid var(--line);padding:15px 0 20px;font-size:10px;color:#87917d}.source-details summary{cursor:pointer;font-size:10px;line-height:1.7}.source-list{margin-top:13px;display:flex;flex-direction:column;gap:13px}.source-item strong{font-weight:500;color:#5d755a;display:block;margin-bottom:5px}.source-item code{display:block;overflow-wrap:anywhere;font-size:9px;line-height:1.65;color:#8b9885;margin-bottom:6px}.source-item button{background:none;padding:0;font-size:9px;color:#527d60;display:inline-flex;align-items:center;gap:4px}.source-item button svg{width:11px;height:11px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:100;background:#203c30;color:#eff7e6;padding:12px 20px;border-radius:10px;box-shadow:0 8px 30px #10261525;display:flex;align-items:center;gap:8px;font-size:12px;max-width:calc(100vw - 30px);line-height:1.6}.toast svg{width:16px;height:16px}dialog{width:min(490px,calc(100vw - 32px));border:1px solid var(--line);border-radius:18px;padding:25px 28px;color:var(--ink);box-shadow:0 30px 100px #12261930;max-height:90vh;overflow:auto}dialog::backdrop{background:#122b2060;backdrop-filter:blur(3px)}.help-head{display:flex;justify-content:space-between;align-items:center}.section-kicker{font-size:9px;letter-spacing:1.7px;color:#7d9774}dialog h2{font-size:23px;margin:10px 0 24px;font-weight:600;letter-spacing:-.5px}.help-steps{margin:0 0 22px;padding-left:23px}.help-steps li{padding-left:5px;margin-bottom:17px;color:var(--accent);font-size:12px}.help-steps strong{font-weight:500;color:var(--ink)}.help-steps p,.help-note p{color:var(--muted);font-size:11px;line-height:1.9;margin:6px 0 0}.help-note{border-top:1px solid var(--line);padding-top:17px;font-size:12px}.help-note strong{font-weight:500}.help-foot{font-size:10px;color:#8c9885;margin:20px 0;line-height:1.8}dialog>.primary-btn{width:100%}.detail-backdrop{position:fixed;inset:0;background:#10281d55;z-index:35;backdrop-filter:blur(2px)}
@media(min-width:1550px){.workspace{grid-template-columns:minmax(600px,1fr) 410px}.library{padding:40px}.skill-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail{padding-left:30px;padding-right:30px}}
@media(max-width:1230px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.main-shell{margin-left:210px;width:calc(100% - 210px)}.topbar{padding:0 24px}.workspace{grid-template-columns:minmax(340px,1fr) 330px}.library{padding:28px 23px}.detail{padding:24px 20px 0}.featured{gap:16px;padding:20px}.featured-art{width:82px;height:105px}.featured h2{font-size:16px}h1{font-size:22px}.heading-icon{display:none}.skill-card{padding:15px 13px 0}.card-open{font-size:12px}.card-summary{font-size:10px}.category-tag{font-size:8px}.installed-indicator{font-size:10px}}
@media(max-width:1050px){.workspace{display:block}.library{padding:30px;max-width:1000px;margin:auto}.detail{display:none;position:fixed;inset:0 0 0 auto;width:390px;max-width:100%;z-index:40;max-height:100vh;min-height:100vh;padding:24px 26px 0}.detail.mobile-open{display:block}.detail-close{display:inline-flex}.detail-topline{margin-bottom:18px}.skill-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.skill-card{padding:18px 15px 0}.card-summary{font-size:11px}.card-open{font-size:13px}}
@media(max-width:850px){.skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.breadcrumb{gap:8px}.installed-indicator{display:none}.page-heading p{font-size:11px}.library{padding:27px 24px}.featured-art{width:92px}}
@media(max-width:620px){.app-shell{display:block}.sidebar{position:static;width:auto;padding:18px 17px 12px;overflow:visible;display:block}.brand{margin-bottom:18px;padding:0;font-size:15px}.brand-mark{width:30px;height:30px}.brand small{font-size:7px;margin-top:5px}.sidebar-section-title,.sidebar-bottom{display:none}.nav-group{flex-direction:row;flex-wrap:wrap;gap:6px}#collections{margin-bottom:11px}.nav-item{width:auto;min-height:32px;padding:7px 10px;gap:6px;font-size:10px;flex-shrink:0}.nav-item svg{width:13px;height:13px}.nav-count{font-size:9px}#categories .nav-item{padding:7px 9px;border:1px solid #395044;font-size:9px;min-height:30px}#categories .nav-item .nav-count{display:none}.main-shell{margin:0;width:auto}.topbar{height:54px;padding:0 19px}.breadcrumb{font-size:10px}.top-actions{gap:6px}#mobileHelp{display:inline-flex}.library{padding:24px 18px}h1{font-size:22px}.page-heading p{font-size:11px;max-width:260px}.featured{padding:18px;gap:15px;min-height:149px}.featured-art{width:76px;height:98px}.featured-art span{font-size:53px}.featured h2{font-size:16px}.featured p{font-size:10px}.new-label{font-size:8px}.search-row{margin-bottom:20px}.search input{font-size:12px}.skill-grid{gap:10px}.skill-card{padding:14px 12px 0;min-height:186px}.skill-icon{width:31px;height:31px;border-radius:8px}.card-open{font-size:12px}.card-summary{font-size:10px}.card-bottom{flex-wrap:wrap;gap:5px}.card-copy{font-size:9px}.category-tag{font-size:8px}.card-head{gap:5px}.tiny-badge{font-size:8px}.card-fav{width:24px;min-width:24px}.library-footer{flex-direction:column;gap:3px}.detail{width:100%;padding:22px 24px 0}.primary-btn{min-height:44px;font-size:12px}.prompt-editor{font-size:12px}.detail-description{font-size:13px}.features li,.usage li{font-size:12px}.detail-section h3{font-size:13px}.detail-note{font-size:11px}.source-item code{font-size:10px}.icon-btn{width:38px;height:38px;min-width:38px}.card-fav{width:26px;height:26px;min-width:26px}.card-copy{min-height:29px}.prompt-label{font-size:10px}.toast{bottom:16px;font-size:11px;width:max-content}.search kbd{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* DESIGN_VARIANCE: 5 / MOTION_INTENSITY: 3 / VISUAL_DENSITY: 6 */
@media(max-width:620px){
 .sidebar{position:sticky;top:0;padding:13px 16px 10px;box-shadow:0 1px 0 rgb(255 255 255 / .08);}
 .brand{margin-bottom:12px;}
 #categories{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;padding:1px 0 3px;}
 #categories::-webkit-scrollbar{display:none;}
 #categories .nav-item{flex:0 0 auto;}
}

/* AI studio palette: atmospheric canvas, category-filled cards, crisp controls. */
:root[data-theme="dark"]{
  --accent:#75f2d0;
  --accent-dark:#50d8bc;
  --accent-soft:#15363a;
  --bg:#080d12;
  --panel:#101922;
  --line:#263944;
}
:root[data-theme="dark"] body{
  background-color:#080d12;
  background-image:linear-gradient(128deg,#0a1118 0%,#0b151a 46%,#101621 100%);
  background-attachment:fixed;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(90deg,rgb(123 226 217 / .035) 1px,transparent 1px),
    linear-gradient(0deg,rgb(123 226 217 / .035) 1px,transparent 1px),
    linear-gradient(118deg,transparent 0 45%,rgb(56 143 176 / .045) 45.1%,transparent 45.5% 100%);
  background-size:42px 42px,42px 42px,100% 100%;
  mask-image:linear-gradient(90deg,transparent 0 12%,#000 27%,#000 78%,transparent 100%);
}
.app-shell{position:relative;z-index:1;}
:root[data-theme="dark"] .sidebar{
  background:linear-gradient(180deg,#09131a,#0b111b 58%,#0a1017);
  border-right:1px solid #203541;
}
:root[data-theme="dark"] .brand-mark{
  background:linear-gradient(145deg,#90ffe5,#89cfff 58%,#c0fb73);
  color:#062522;
  box-shadow:0 0 28px rgb(89 232 214 / .28),inset 0 1px #fff;
}
:root[data-theme="dark"] .nav-item:hover{background:#142933;color:#f4ffff;}
:root[data-theme="dark"] .nav-item.active{
  background:linear-gradient(105deg,#12343a,#172c38 72%,#202b36);
  color:#eafffb;
  box-shadow:inset 2px 0 #75f2d0,0 0 22px rgb(57 205 196 / .08);
}
:root[data-theme="dark"] .nav-item.active svg{color:#75f2d0;}
:root[data-theme="dark"] .topbar{
  background:rgb(9 16 23 / .88);
  border-color:#263944;
  backdrop-filter:blur(18px) saturate(135%);
}
:root[data-theme="dark"] .workspace{background:linear-gradient(110deg,rgb(9 17 23 / .52),rgb(10 16 24 / .78));}
:root[data-theme="dark"] .detail{
  background:linear-gradient(155deg,#111c26,#101720 68%,#111923);
  border-color:#2b3d49;
}
:root[data-theme="dark"] .heading-icon{
  background:linear-gradient(145deg,#10282d,#122536);
  border-color:#31535b;
  color:#8cf5da;
  box-shadow:inset 0 1px rgb(255 255 255 / .1),0 0 24px rgb(56 202 197 / .11);
}
:root[data-theme="dark"] .featured{
  background:linear-gradient(112deg,#12302e 0%,#12303b 48%,#1b2635 100%);
  border-color:#35605c;
  box-shadow:inset 0 1px rgb(255 255 255 / .14),0 18px 55px rgb(0 0 0 / .22);
}
:root[data-theme="dark"] .featured:after{
  background:linear-gradient(90deg,transparent,#7cffe0,#86ccff,#c7f877,transparent);
}
:root[data-theme="dark"] .featured-art{
  background:linear-gradient(145deg,#78f4d0 0%,#51cbe0 48%,#5486ed 100%);
  color:#f6ffff;
  box-shadow:0 0 42px rgb(83 210 220 / .34),inset 0 1px rgb(255 255 255 / .56);
}
:root[data-theme="dark"] .new-label>span{background:#8effd8;box-shadow:0 0 12px #76ffdc;}
:root[data-theme="dark"] .text-action{color:#8ef5da;}
:root[data-theme="dark"] .skill-card{
  background:linear-gradient(138deg,
    hsl(var(--skill-hue) 78% 27% / .98),
    hsl(var(--skill-hue) 68% 19% / .98) 72%,
    #111922 100%);
  border-color:hsl(var(--skill-hue) 58% 63% / .38);
  box-shadow:inset 0 1px rgb(255 255 255 / .09),0 10px 30px rgb(0 0 0 / .2);
}
:root[data-theme="dark"] .skill-card:before{
  background:linear-gradient(125deg,hsl(var(--skill-hue) 95% 72% / .16),transparent 52%);
}
:root[data-theme="dark"] .skill-card:after{
  right:18px;width:78px;height:2px;
  background:linear-gradient(90deg,transparent,hsl(var(--skill-hue) 100% 78% / .92),transparent);
}
:root[data-theme="dark"] .skill-card:hover{
  transform:translateY(-3px);
  border-color:hsl(var(--skill-hue) 76% 72% / .72);
  box-shadow:inset 0 1px rgb(255 255 255 / .17),0 17px 38px rgb(0 0 0 / .34),0 0 30px hsl(var(--skill-hue) 90% 60% / .14);
}
:root[data-theme="dark"] .skill-card.selected{
  border-color:#75f2d0;
  box-shadow:inset 0 0 0 1px rgb(117 242 208 / .5),0 0 28px rgb(66 221 203 / .16);
}
:root[data-theme="dark"] .skill-icon{
  background:linear-gradient(145deg,hsl(var(--skill-hue) 72% 26%),hsl(var(--skill-hue) 70% 34%));
  border-color:hsl(var(--skill-hue) 82% 75% / .5);
  color:hsl(var(--skill-hue) 100% 88%);
  box-shadow:inset 0 1px rgb(255 255 255 / .22),0 0 24px hsl(var(--skill-hue) 88% 61% / .22);
}
:root[data-theme="dark"] .skill-icon svg{filter:drop-shadow(0 0 7px hsl(var(--skill-hue) 100% 74% / .72));}
:root[data-theme="dark"] .card-open{color:#f4fbff;}
:root[data-theme="dark"] .card-open:hover{color:hsl(var(--skill-hue) 100% 84%);}
:root[data-theme="dark"] .card-summary{color:#d0dce4;}
:root[data-theme="dark"] .category-tag{color:hsl(var(--skill-hue) 86% 82%);}
:root[data-theme="dark"] .card-bottom{border-color:hsl(var(--skill-hue) 45% 74% / .2);}
:root[data-theme="dark"] .card-copy{color:#d2e2e8;}
:root[data-theme="dark"] .card-copy:hover{color:#fff;background:hsl(var(--skill-hue) 60% 45% / .3);}
:root[data-theme="dark"] .search{
  background:linear-gradient(105deg,#0d1821,#101d25);
  border-color:#35505c;
  box-shadow:inset 0 1px rgb(255 255 255 / .06),0 8px 26px rgb(0 0 0 / .14);
}
:root[data-theme="dark"] .search:focus-within{border-color:#72e9d1;box-shadow:0 0 0 3px rgb(77 224 206 / .14),0 0 26px rgb(77 224 206 / .1);}
:root[data-theme="dark"] .primary-btn{
  background:linear-gradient(105deg,#83f5d6,#75dff0 58%,#a6f279);
  color:#092620;
  box-shadow:0 5px 24px rgb(94 227 203 / .2),inset 0 1px rgb(255 255 255 / .7);
}
:root[data-theme="dark"] .primary-btn:hover{background:linear-gradient(105deg,#a0ffe2,#95ecf6 58%,#bdff8f);}
:root[data-theme="dark"] .theme-toggle{color:#90f2d8;}
:root[data-theme="dark"] .detail-identity .skill-icon{width:58px;height:58px;}

:root[data-theme="light"]{
  --accent:#087f88;
  --accent-dark:#066a76;
  --accent-soft:#dff5f3;
  --bg:#edf3f5;
  --panel:#f7fbfc;
  --line:#d4e1e6;
}
:root[data-theme="light"] body{
  background:linear-gradient(125deg,#edf6f4 0%,#eef4f8 52%,#f2f1f9 100%);
  background-attachment:fixed;
}
:root[data-theme="light"] body:before{
  background-image:linear-gradient(90deg,rgb(32 102 120 / .045) 1px,transparent 1px),linear-gradient(0deg,rgb(32 102 120 / .045) 1px,transparent 1px);
}
:root[data-theme="light"] .sidebar{background:linear-gradient(180deg,#0b171c,#101b28);color:#d1e0e4;}
:root[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#a0ffe4,#a2d6ff);color:#092c2b;}
:root[data-theme="light"] .topbar{background:rgb(248 252 253 / .86);backdrop-filter:blur(16px);}
:root[data-theme="light"] .detail{background:rgb(249 252 253 / .94);}
:root[data-theme="light"] .workspace{background:rgb(240 246 248 / .5);}
:root[data-theme="light"] .featured{background:linear-gradient(112deg,#dbf5ed,#e1f1f7 58%,#e6eaf8);border-color:#c9e3e4;}
:root[data-theme="light"] .skill-card{
  background:linear-gradient(140deg,hsl(var(--skill-hue) 78% 88%),hsl(var(--skill-hue) 68% 82%) 68%,hsl(var(--skill-hue) 44% 96%));
  border-color:hsl(var(--skill-hue) 48% 70%);
  box-shadow:inset 0 1px #fff,0 8px 22px hsl(var(--skill-hue) 45% 38% / .08);
}
:root[data-theme="light"] .skill-card:before{background:linear-gradient(125deg,hsl(var(--skill-hue) 94% 58% / .12),transparent 55%);}
:root[data-theme="light"] .skill-card:hover{border-color:hsl(var(--skill-hue) 58% 60%);box-shadow:inset 0 1px #fff,0 13px 30px hsl(var(--skill-hue) 52% 40% / .17);}
:root[data-theme="light"] .skill-card.selected{border-color:#087f88;box-shadow:inset 0 0 0 1px #087f88,0 10px 28px rgb(16 137 139 / .15);}
:root[data-theme="light"] .skill-card .card-open{color:#142c38;}
:root[data-theme="light"] .skill-card .card-summary{color:#425b68;}
:root[data-theme="light"] .skill-card .category-tag{color:hsl(var(--skill-hue) 67% 31%);}
:root[data-theme="light"] .skill-card .card-bottom{border-color:hsl(var(--skill-hue) 42% 65% / .42);}
:root[data-theme="light"] .search{background:#f9fcfd;border-color:#cbdde2;}
:root[data-theme="light"] .primary-btn{background:linear-gradient(105deg,#0e8b82,#158eae 62%,#48a979);}
:root[data-theme="light"] .theme-toggle{color:#176c82;}
@media(prefers-reduced-motion:reduce){body:before{display:none;}}
@media(min-width:1051px){
 .detail{border-left:1px solid #dce4da;}
 .detail-topline{position:sticky;top:-27px;background:var(--panel);z-index:2;padding:10px 0;margin-top:-10px;margin-bottom:20px;}
}
.skill-card{min-height:166px;padding-top:16px;}
.skill-card:hover{transform:translateY(-1px);}
.skill-card:focus-visible{outline:3px solid #62b99c;outline-offset:3px;}
.card-open{font-size:13px;}
.card-summary{font-size:11px;}
.category-tag,.card-copy{font-size:10px;}
.detail-description{font-size:13px;}
.features li,.usage li{font-size:11px;}
.detail-section h3{font-size:12px;}
.card-open:focus-visible{outline-offset:4px;border-radius:3px;}
.card-copy{border-radius:5px;padding:4px 6px;}
.card-copy:hover{background:var(--accent-soft);}
.prompt-editor{font-family:Consolas,"Microsoft YaHei",PingFang SC,monospace;}
:root[data-theme="dark"]{color-scheme:dark;--accent:#c8ff6a;--accent-dark:#ddff9b;--accent-soft:#253324;--ink:#f0f4f6;--muted:#99a9b6;--line:#27323e;--bg:#090e14;--panel:#111821;--sidebar:#080c12;background:var(--bg);color:var(--ink);}
:root[data-theme="dark"] body{background:linear-gradient(145deg,#0b1118,#090d13 48%,#10141c);color:var(--ink);}
:root[data-theme="dark"] .sidebar{background:#080c12;color:#c3ccd5;border-right:1px solid #1d2732;}
:root[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#d9ff8b,#83e7c8);color:#10231e;box-shadow:0 0 24px #adff6c35,inset 0 1px #ffffffa0;}
:root[data-theme="dark"] .brand small,.sidebar-bottom small{color:#8595a6;}
:root[data-theme="dark"] .sidebar-section-title{color:#91a3b4;}
:root[data-theme="dark"] .nav-item{color:#aebbc8;}
:root[data-theme="dark"] .nav-item:hover{background:#172632;color:#f5fbff;}
:root[data-theme="dark"] .nav-item.active{background:linear-gradient(95deg,#1b3028,#16242c);color:#f0ffd4;box-shadow:inset 2px 0 #c8ff6a;}
:root[data-theme="dark"] .nav-item.active svg{color:#c8ff6a;}
:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .detail,:root[data-theme="dark"] .search,:root[data-theme="dark"] dialog{background:#101720;color:var(--ink);border-color:#283440;}
:root[data-theme="dark"] .topbar{background:rgb(13 19 27 / .94);backdrop-filter:blur(14px);}
:root[data-theme="dark"] .breadcrumb,:root[data-theme="dark"] .installed-indicator,:root[data-theme="dark"] .search svg,:root[data-theme="dark"] .count-label,:root[data-theme="dark"] .sort,:root[data-theme="dark"] .sort select{color:#9eafbf;}
:root[data-theme="dark"] .breadcrumb strong,:root[data-theme="dark"] .list-toolbar h2,:root[data-theme="dark"] .detail-identity h2,:root[data-theme="dark"] .detail-section h3,:root[data-theme="dark"] .empty-state h3{color:#f2f6fa;}
:root[data-theme="dark"] .page-heading p,:root[data-theme="dark"] .detail-description,:root[data-theme="dark"] .features li,:root[data-theme="dark"] .usage li,:root[data-theme="dark"] .card-summary,:root[data-theme="dark"] .empty-state,:root[data-theme="dark"] .help-steps p,:root[data-theme="dark"] .help-note p{color:#a6b4c0;}
:root[data-theme="dark"] .page-heading .eyebrow{color:#b8f87a;}
:root[data-theme="dark"] .heading-icon{background:linear-gradient(145deg,#14232d,#14251e);border-color:#34424a;color:#b8f7a0;box-shadow:inset 0 1px #ffffff12,0 0 30px #77f5c010;}
:root[data-theme="dark"] .featured{background:linear-gradient(112deg,#17231f,#14202a 55%,#1b1a28);border:1px solid #33443e;box-shadow:inset 0 1px #ffffff12,0 18px 60px #0002;}
:root[data-theme="dark"] .featured:after{content:"";position:absolute;inset:0 18px auto;height:1px;background:linear-gradient(90deg,transparent,#9effb2,#8adaff,#db9cff,transparent);opacity:.8;}
:root[data-theme="dark"] .featured-art{background:linear-gradient(145deg,#55f0c1 0%,#31afc8 45%,#686cf3 100%);color:#f5fff8;box-shadow:0 0 38px #64dff355,inset 0 1px #ffffff80;}
:root[data-theme="dark"] .featured-art:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 10px,#ffffff16 10px 11px);}
:root[data-theme="dark"] .featured-art>span{position:relative;font-family:Segoe UI,"Microsoft YaHei",sans-serif;font-weight:700;font-size:52px;letter-spacing:-3px;text-shadow:0 4px 24px #17223788;}
:root[data-theme="dark"] .featured-art>svg{z-index:1;filter:drop-shadow(0 0 6px #fff);}
:root[data-theme="dark"] .new-label,:root[data-theme="dark"] .featured p{color:#b7c9d2;}
:root[data-theme="dark"] .new-label>span{background:#c8ff6a;box-shadow:0 0 10px #c8ff6a99;}
:root[data-theme="dark"] .featured h2{color:#f3f6f9;}
:root[data-theme="dark"] .text-action{color:#c9ff86;}
:root[data-theme="dark"] .text-action:hover{color:#e0ffa9;}
:root[data-theme="dark"] .skill-icon{width:42px;height:42px;border-radius:11px;background:linear-gradient(145deg,hsl(var(--skill-hue,165) 48% 19%),hsl(var(--skill-hue,165) 49% 25%));border:1px solid hsl(var(--skill-hue,165) 54% 54% / .38);color:hsl(var(--skill-hue,165) 94% 78%);box-shadow:inset 0 1px #ffffff1c,0 3px 16px hsl(var(--skill-hue,165) 83% 51% / .13);}
:root[data-theme="dark"] .skill-icon svg{width:23px;height:23px;stroke-width:1.75;}
:root[data-theme="dark"] .skill-icon svg{filter:drop-shadow(0 0 6px hsl(var(--skill-hue,165) 94% 65% / .55));}
:root[data-theme="dark"] .search{background:#0e151e;border-color:#2d3a47;box-shadow:inset 0 1px #ffffff08;}
:root[data-theme="dark"] .search:focus-within{border-color:#92e8d1;box-shadow:0 0 0 3px #53d4c01e,0 0 24px #53d4c010;}
:root[data-theme="dark"] .search input{color:#edf5f7;}
:root[data-theme="dark"] .search input::placeholder{color:#8294a3;}
:root[data-theme="dark"] .search kbd{border-color:#354250;color:#9eb0bf;background:#18212a;}
:root[data-theme="dark"] .list-toolbar h2{font-size:13px;}
:root[data-theme="dark"] .skill-card{isolation:isolate;overflow:hidden;min-height:174px;padding:19px 18px 0;border:1px solid #293440;border-radius:13px;background:linear-gradient(145deg,#151e28,#101720 78%);box-shadow:inset 0 1px #ffffff0b,0 8px 28px #02060a24;transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .22s,box-shadow .22s;}
:root[data-theme="dark"] .skill-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(140deg,hsl(var(--skill-hue) 82% 58% / .11),transparent 44%);pointer-events:none;}
:root[data-theme="dark"] .skill-card:after{content:"";position:absolute;top:0;right:18px;width:52px;height:1px;background:linear-gradient(90deg,transparent,hsl(var(--skill-hue) 96% 74% / .88),transparent);pointer-events:none;}
:root[data-theme="dark"] .skill-card:hover{transform:translateY(-3px);border-color:hsl(var(--skill-hue) 58% 61% / .62);box-shadow:inset 0 1px #ffffff18,0 14px 36px #02070c66,0 0 28px hsl(var(--skill-hue) 90% 58% / .09);}
:root[data-theme="dark"] .skill-card.selected{border-color:#c8ff6a;box-shadow:inset 0 0 0 1px #c8ff6a55,0 0 26px #b5ff641e;}
:root[data-theme="dark"] .skill-card:focus-visible{outline-color:#c8ff6a;}
:root[data-theme="dark"] .card-open{color:#f0f4f7;}
:root[data-theme="dark"] .card-open:hover{color:#d8ffa0;}
:root[data-theme="dark"] .card-summary{color:#a1afbb;}
:root[data-theme="dark"] .card-bottom,:root[data-theme="dark"] .library-footer,:root[data-theme="dark"] .source-details{border-color:#293541;}
:root[data-theme="dark"] .category-divider{color:#9db2c1;}
:root[data-theme="dark"] .category-divider:after{background:linear-gradient(90deg,#32414d,transparent);}
:root[data-theme="dark"] .category-divider span:last-child{color:#8195a4;}
:root[data-theme="dark"] .category-tag,:root[data-theme="dark"] .count-label,:root[data-theme="dark"] .reset-prompt,:root[data-theme="dark"] .detail-topline,:root[data-theme="dark"] .section-kicker{color:#9cabb8;}
:root[data-theme="dark"] .detail-identity .skill-icon{width:58px;height:58px;}
:root[data-theme="dark"] .detail-tag{border-color:#374653;color:#b8c7d1;background:#141e28;}
:root[data-theme="dark"] .detail-tag.new,:root[data-theme="dark"] .tiny-badge{border-color:transparent;background:#293827;color:#d6ff9a;}
:root[data-theme="dark"] .prompt-editor{background:#0c131b;border-color:#354351;color:#d4e0e6;box-shadow:inset 0 1px 8px #0004;}
:root[data-theme="dark"] .primary-btn{background:linear-gradient(110deg,#d1ff7c,#9bf2c1);color:#10211a;box-shadow:0 4px 20px #a9f88125,inset 0 1px #ffffff99;}
:root[data-theme="dark"] .primary-btn:hover{background:linear-gradient(110deg,#ddff9a,#affbd1);box-shadow:0 5px 26px #a9f88144,inset 0 1px #ffffffb3;}
:root[data-theme="dark"] .prompt-label,:root[data-theme="dark"] .source-details,:root[data-theme="dark"] .source-item code{color:#a1b0b9;}
:root[data-theme="dark"] .secondary-btn{background:#151e27;border-color:#354451;color:#d0ddd8;}
:root[data-theme="dark"] .secondary-btn:hover,:root[data-theme="dark"] .icon-btn:hover{background:#22313b;color:#f2f8fb;}
:root[data-theme="dark"] .icon-btn{color:#a1b2bf;}
:root[data-theme="dark"] .theme-toggle{color:#d8fa88;}
:root[data-theme="dark"] .theme-toggle:hover{color:#f0ffd0;}
:root[data-theme="dark"] .detail-note{color:#cbdfa6;border-color:#a5d967;}
:root[data-theme="dark"] .detail-section h3 svg,:root[data-theme="dark"] .features li svg{color:#a4e9c1;}
:root[data-theme="dark"] .usage li:before{color:#b2c3cf;}
:root[data-theme="dark"] .toast{background:#d9f2ca;color:#14251d;box-shadow:0 10px 34px #0008;}
:root[data-theme="dark"] dialog::backdrop{background:#03070bb8;backdrop-filter:blur(5px);}
:root[data-theme="light"]{color-scheme:light;}
:root[data-theme="light"] .skill-icon{color:hsl(var(--skill-hue,165) 67% 39%);background:linear-gradient(145deg,hsl(var(--skill-hue,165) 82% 95%),hsl(var(--skill-hue,165) 54% 91%));border:1px solid hsl(var(--skill-hue,165) 42% 83%);box-shadow:inset 0 1px #fff,0 3px 12px hsl(var(--skill-hue,165) 50% 50% / .08);}
:root[data-theme="light"] .skill-icon svg{filter:drop-shadow(0 2px 4px hsl(var(--skill-hue,165) 55% 40% / .2));}
:root[data-theme="light"] .skill-card{border-color:#dce5e1;background:linear-gradient(145deg,#fff,#f9fbfc 82%);transition:transform .2s,border-color .2s,box-shadow .2s;}
:root[data-theme="light"] .skill-card:hover{transform:translateY(-2px);border-color:hsl(var(--skill-hue) 43% 68%);box-shadow:0 12px 30px hsl(var(--skill-hue) 35% 32% / .12);}
:root[data-theme="light"] .skill-card.selected{border-color:#188974;box-shadow:0 0 0 1px #188974,0 8px 26px #3284771a;}
:root[data-theme="light"] .theme-toggle{color:#566b88;}
:root[data-theme="light"] .detail-identity .skill-icon{width:58px;height:58px;}
@media(max-width:1230px){:root[data-theme="dark"] .skill-card{padding-left:15px;padding-right:15px;}}
@media(max-width:1050px){:root[data-theme="dark"] .skill-card{padding-left:16px;padding-right:16px;}}
@media(max-width:620px){:root[data-theme="dark"] .skill-card{padding:15px 12px 0;min-height:180px;}:root[data-theme="dark"] .skill-card>.card-head>.skill-icon{width:36px;height:36px;}:root[data-theme="dark"] .skill-card>.card-head>.skill-icon svg{width:20px;height:20px;}}
@media(prefers-reduced-motion:reduce){:root[data-theme="dark"] .skill-card,:root[data-theme="light"] .skill-card{transition:none;transform:none;}}

/* Final AI studio theme overrides follow the legacy theme rules above. */
html:root[data-theme="dark"]{--accent:#75f2d0;--accent-dark:#50d8bc;--accent-soft:#15363a;--bg:#080d12;--panel:#101922;--line:#263944;}
html:root[data-theme="dark"] body{background:linear-gradient(128deg,#0a1118,#0b151a 46%,#101621);background-attachment:fixed;}
html:root[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#09131a,#0b111b 58%,#0a1017);border-color:#203541;}
html:root[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#90ffe5,#89cfff 58%,#c0fb73);color:#062522;box-shadow:0 0 28px #59e8d647,inset 0 1px #fff;}
html:root[data-theme="dark"] .nav-item.active{background:linear-gradient(105deg,#12343a,#172c38 72%,#202b36);color:#eafffb;box-shadow:inset 2px 0 #75f2d0,0 0 22px #39cdc414;}
html:root[data-theme="dark"] .nav-item.active svg{color:#75f2d0;}
html:root[data-theme="dark"] .topbar{background:#091017e0;border-color:#263944;backdrop-filter:blur(18px) saturate(135%);}
html:root[data-theme="dark"] .workspace{background:linear-gradient(110deg,#09111785,#0a1018c7);}
html:root[data-theme="dark"] .detail{background:linear-gradient(155deg,#111c26,#101720 68%,#111923);border-color:#2b3d49;}
html:root[data-theme="dark"] .heading-icon{background:linear-gradient(145deg,#10282d,#122536);border-color:#31535b;color:#8cf5da;}
html:root[data-theme="dark"] .featured{background:linear-gradient(112deg,#12302e,#12303b 48%,#1b2635);border-color:#35605c;}
html:root[data-theme="dark"] .featured:after{background:linear-gradient(90deg,transparent,#7cffe0,#86ccff,#c7f877,transparent);}
html:root[data-theme="dark"] .featured-art{background:linear-gradient(145deg,#78f4d0,#51cbe0 48%,#5486ed);}
html:root[data-theme="dark"] .text-action{color:#8ef5da;}
html:root[data-theme="dark"] .skill-card{background:linear-gradient(138deg,hsl(var(--skill-hue) 78% 27% / .98),hsl(var(--skill-hue) 68% 19% / .98) 72%,#111922);border-color:hsl(var(--skill-hue) 58% 63% / .38);box-shadow:inset 0 1px #ffffff17,0 10px 30px #0003;}
html:root[data-theme="dark"] .skill-card:before{background:linear-gradient(125deg,hsl(var(--skill-hue) 95% 72% / .16),transparent 52%);}
html:root[data-theme="dark"] .skill-card:after{width:78px;height:2px;background:linear-gradient(90deg,transparent,hsl(var(--skill-hue) 100% 78% / .92),transparent);}
html:root[data-theme="dark"] .skill-card:hover{border-color:hsl(var(--skill-hue) 76% 72% / .72);box-shadow:inset 0 1px #ffffff2b,0 17px 38px #0006,0 0 30px hsl(var(--skill-hue) 90% 60% / .14);}
html:root[data-theme="dark"] .skill-card.selected{border-color:#75f2d0;box-shadow:inset 0 0 0 1px #75f2d080,0 0 28px #42ddcb29;}
html:root[data-theme="dark"] .skill-icon{background:linear-gradient(145deg,hsl(var(--skill-hue) 72% 26%),hsl(var(--skill-hue) 70% 34%));border-color:hsl(var(--skill-hue) 82% 75% / .5);color:hsl(var(--skill-hue) 100% 88%);box-shadow:inset 0 1px #ffffff38,0 0 24px hsl(var(--skill-hue) 88% 61% / .22);}
html:root[data-theme="dark"] .card-open{color:#f4fbff;}
html:root[data-theme="dark"] .card-summary{color:#d0dce4;}
html:root[data-theme="dark"] .category-tag{color:hsl(var(--skill-hue) 86% 82%);}
html:root[data-theme="dark"] .card-bottom{border-color:hsl(var(--skill-hue) 45% 74% / .3);}
html:root[data-theme="dark"] .search{background:linear-gradient(105deg,#0d1821,#101d25);border-color:#35505c;}
html:root[data-theme="dark"] .primary-btn{background:linear-gradient(105deg,#83f5d6,#75dff0 58%,#a6f279);color:#092620;}
html:root[data-theme="dark"] .theme-toggle{color:#90f2d8;}
html:root[data-theme="light"]{--accent:#087f88;--accent-dark:#066a76;--accent-soft:#dff5f3;--bg:#edf3f5;--panel:#f7fbfc;--line:#d4e1e6;}
html:root[data-theme="light"] body{background:linear-gradient(125deg,#edf6f4,#eef4f8 52%,#f2f1f9);background-attachment:fixed;}
html:root[data-theme="light"] .sidebar{background:linear-gradient(180deg,#0b171c,#101b28);}
html:root[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#a0ffe4,#a2d6ff);color:#092c2b;}
html:root[data-theme="light"] .topbar{background:#f8fcfddd;backdrop-filter:blur(16px);}
html:root[data-theme="light"] .detail{background:#f9fcfdf0;}
html:root[data-theme="light"] .workspace{background:#f0f6f880;}
html:root[data-theme="light"] .featured{background:linear-gradient(112deg,#dbf5ed,#e1f1f7 58%,#e6eaf8);border-color:#c9e3e4;}
html:root[data-theme="light"] .skill-card{background:linear-gradient(140deg,hsl(var(--skill-hue) 78% 88%),hsl(var(--skill-hue) 68% 82%) 68%,hsl(var(--skill-hue) 44% 96%));border-color:hsl(var(--skill-hue) 48% 70%);box-shadow:inset 0 1px #fff,0 8px 22px hsl(var(--skill-hue) 45% 38% / .08);}
html:root[data-theme="light"] .skill-card:before{background:linear-gradient(125deg,hsl(var(--skill-hue) 94% 58% / .12),transparent 55%);}
html:root[data-theme="light"] .skill-card:hover{border-color:hsl(var(--skill-hue) 58% 60%);box-shadow:inset 0 1px #fff,0 13px 30px hsl(var(--skill-hue) 52% 40% / .17);}
html:root[data-theme="light"] .skill-card.selected{border-color:#087f88;box-shadow:inset 0 0 0 1px #087f88,0 10px 28px #10898b26;}
html:root[data-theme="light"] .skill-card .card-open{color:#142c38;}
html:root[data-theme="light"] .skill-card .card-summary{color:#304956;}
html:root[data-theme="light"] .skill-card .category-tag{color:hsl(var(--skill-hue) 67% 31%);}
html:root[data-theme="light"] .search{background:#f9fcfd;border-color:#cbdde2;}
html:root[data-theme="light"] .primary-btn{background:linear-gradient(105deg,#0e8b82,#158eae 62%,#48a979);}
html:root[data-theme="light"] .theme-toggle{color:#176c82;}
html:root .taste-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 9px;padding:4px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--panel) 82%,transparent);}
html:root .taste-preset{min-width:0;min-height:37px;padding:6px 5px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:10px;white-space:nowrap;transition:background .16s,border-color .16s,color .16s,box-shadow .16s;}
html:root .taste-preset svg{width:14px;height:14px;}
html:root .taste-preset:hover{color:var(--ink);background:var(--accent-soft);}
html:root .taste-preset[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 42%,transparent);box-shadow:inset 0 1px rgb(255 255 255 / .08);}
html:root .taste-preset-description{margin:-1px 0 9px;color:var(--muted);font-size:9px;line-height:1.7;}
html:root[data-theme="dark"] .taste-presets{border-color:#344854;background:#0c151e;}
html:root[data-theme="dark"] .taste-preset{color:#a7b8c4;}
html:root[data-theme="dark"] .taste-preset[aria-pressed="true"]{color:#b6ffea;background:linear-gradient(120deg,#123c3a,#163849);border-color:#39776e;box-shadow:inset 0 1px #ffffff1a,0 0 14px #37d9c31c;}
html:root[data-theme="light"] .taste-presets{border-color:#cbdde2;background:#edf4f6;}
html:root[data-theme="light"] .taste-preset{color:#536c78;}
html:root[data-theme="light"] .taste-preset[aria-pressed="true"]{color:#075f67;background:#d7efeb;border-color:#83c9c0;box-shadow:inset 0 1px #ffffffb8;}
.handoff-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.handoff-invocation{padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft);}
.handoff-invocation p{font-size:11px;line-height:1.9;color:var(--ink);margin:8px 0 0;overflow-wrap:anywhere;}
.handoff-invocation code{font-family:Consolas,"Microsoft YaHei",monospace;font-size:11px;color:var(--accent);}
.find-skill-presets{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
