:root{
  --bg:#fbfbfa; --surface:#ffffff; --text:#2a2a28; --muted:#6b6b66; --faint:#9a9a93;
  --border:rgba(0,0,0,.10); --border-2:rgba(0,0,0,.18); --accent:#3a6ea5;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft Yahei",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#1a1a19; --surface:#222220; --text:#e8e8e4; --muted:#a6a6a0; --faint:#76766f;
    --border:rgba(255,255,255,.12); --border-2:rgba(255,255,255,.22); --accent:#7fa8d4; }
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--sans);line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;transition:color .2s}
a:hover{color:var(--accent)}
.wrap{max-width:760px;margin:0 auto;padding:0 24px 56px}
.nav{display:flex;align-items:center;justify-content:space-between;padding:22px 0;border-bottom:.5px solid var(--border)}
.brand{font-family:var(--mono);font-weight:500;font-size:15px}
.nav-links a{font-size:13px;color:var(--muted);margin-left:20px}
.hero{padding:40px 0 44px}
.kicker{font-family:var(--mono);font-size:13px;color:var(--faint);margin-bottom:12px}
.hero h1{font-size:30px;font-weight:500;letter-spacing:.5px;margin-bottom:16px}
.lead{font-size:16.5px;color:var(--muted);max-width:33em;margin-bottom:10px}
.tagline{font-family:var(--mono);font-size:14.5px;color:var(--faint);margin-bottom:18px}
.contact a{font-size:14px;color:var(--muted);margin-right:18px;border-bottom:.5px solid var(--border-2);padding-bottom:1px}
.section{padding:8px 0 36px}
.section-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.sec-title{font-size:15px;font-weight:500;color:var(--text);white-space:nowrap}
.sec-sub{font-size:12px;color:var(--faint);white-space:nowrap}
.sec-rule{flex:1;height:1px;background:var(--border)}
.hero-top{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.avatar{width:76px;height:76px;border-radius:50%;object-fit:cover;flex-shrink:0}
.hero-id .kicker{margin-bottom:8px}
.hero-id h1{margin:0}
#aihot-list .feed-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.label{font-family:var(--mono);font-size:13px;color:var(--faint);letter-spacing:.04em}
.card{background:var(--surface);border:.5px solid var(--border);border-radius:12px}
.feed-card,.posts-card{margin-bottom:14px;overflow:hidden}
.feed-card-head{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-bottom:.5px solid var(--border)}
.feed-card-title{font-size:13.5px;font-weight:500}
.feed-card-date{font-family:var(--mono);font-size:12px;color:var(--faint)}
.feed-list{padding:4px 16px}
.feed-item,.post-item{padding:11px 0;border-bottom:.5px solid var(--border)}
.feed-item:last-child,.post-item:last-child{border-bottom:none}
.feed-meta{display:flex;gap:8px;align-items:center;margin-bottom:4px}
.tag{font-family:var(--mono);font-size:11px;color:var(--muted);background:var(--bg);border:.5px solid var(--border);border-radius:6px;padding:1px 7px}
.src{font-family:var(--mono);font-size:12px;color:var(--faint)}
.feed-title{font-size:14px;display:block}
.post-item{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.post-title{font-size:14.5px}
.post-date{font-family:var(--mono);font-size:12px;color:var(--faint);flex-shrink:0}
.empty{font-size:13.5px;color:var(--faint);padding:14px 0}
.feed-card-foot{padding:10px 16px;border-top:.5px solid var(--border);text-align:center;font-size:13px;color:var(--muted)}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.tool{padding:16px 18px;display:block}
.tool h3{font-size:15px;font-weight:500;margin-bottom:6px}
.tool p{font-size:13px;color:var(--muted);line-height:1.55}
.badge{font-family:var(--mono);font-size:11px;color:var(--faint);font-weight:400}
.foot{display:flex;justify-content:space-between;font-family:var(--mono);font-size:12px;color:var(--faint);border-top:.5px solid var(--border);padding-top:18px;margin-top:8px}
.feed-summary{font-size:13px;color:var(--muted);line-height:1.6;margin-top:5px}
.page-title{font-size:24px;font-weight:500;margin:28px 0 6px}
.page-sub{font-size:14px;color:var(--muted);margin-bottom:24px}
.report{margin-bottom:28px}
.report-date{font-family:var(--mono);font-size:14px;font-weight:500;color:var(--muted);margin-bottom:8px;padding-bottom:6px;border-bottom:.5px solid var(--border)}
.report .feed-list{padding:0}
.back{font-size:13px;color:var(--muted);font-family:var(--mono)}
.article{padding:8px 0 20px}
.article-head{margin:24px 0 22px;padding-bottom:16px;border-bottom:.5px solid var(--border)}
.article-head h1{font-size:26px;font-weight:500;line-height:1.35;margin-bottom:10px}
.article-meta{font-family:var(--mono);font-size:13px;color:var(--faint)}
.article-body{font-size:16px;line-height:1.85;color:var(--text)}
.article-body h2{font-size:20px;font-weight:500;margin:28px 0 12px}
.article-body h3{font-size:17px;font-weight:500;margin:22px 0 10px}
.article-body p{margin:0 0 16px}
.article-body ul,.article-body ol{margin:0 0 16px 1.4em}
.article-body li{margin:4px 0}
.article-body a{color:var(--accent);border-bottom:.5px solid var(--border-2)}
.article-body img{max-width:100%;height:auto;border-radius:8px;margin:12px 0}
.article-body blockquote{margin:16px 0;padding:4px 16px;border-left:3px solid var(--border-2);color:var(--muted)}
.article-body code{font-family:var(--mono);font-size:.9em;background:var(--surface);border:.5px solid var(--border);border-radius:4px;padding:1px 5px}
.article-body pre{background:var(--surface);border:.5px solid var(--border);border-radius:8px;padding:14px;overflow-x:auto;margin:0 0 16px}
.article-body pre code{background:none;border:none;padding:0}
.con-user{font-size:13px;color:var(--muted);margin-right:16px}
.con-legend{display:flex;gap:16px;font-size:12px;color:var(--faint);margin:18px 0 6px}
.con-legend span{display:inline-flex;align-items:center;gap:6px}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0;background:var(--faint)}
.dot-on{background:#3a9e6e}
.dot-todo{background:#c2922e}
.dot-ssh{background:var(--faint)}
.dot-off{background:#c0392b}
.con-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.con-card{padding:14px;display:flex;flex-direction:column;gap:3px;position:relative}
.con-card .dot{position:absolute;top:16px;right:14px}
.con-card b{font-size:14.5px;font-weight:500;padding-right:16px}
.con-card small{font-size:12px;color:var(--muted);font-family:var(--mono)}
.con-todo{opacity:.78}
.con-ssh{opacity:.85}
.tunnel{display:block;margin-top:8px;font-family:var(--mono);font-size:11px;color:var(--muted);background:var(--bg);border:.5px solid var(--border);border-radius:6px;padding:6px 8px;word-break:break-all;cursor:pointer}
.tunnel:hover{border-color:var(--border-2)}
.console-page{
  --hub-bg:#f6f7f5;
  --hub-ink:#202522;
  --hub-muted:#64706b;
  --hub-faint:#8c9691;
  --hub-line:rgba(31,38,34,.10);
  --hub-line-strong:rgba(31,38,34,.18);
  --hub-paper:#ffffff;
  --hub-paper-soft:#fbfcfb;
  --hub-blue:#2f6388;
  --hub-green:#2f9566;
  --hub-amber:#aa7821;
  --hub-red:#bc4237;
  --hub-shadow:0 18px 48px rgba(31,38,34,.07);
  background:var(--hub-bg);
  color:var(--hub-ink);
  line-height:1.55;
}
@media (prefers-color-scheme: dark){
  .console-page{
    --hub-bg:#141817;
    --hub-ink:#eef3ef;
    --hub-muted:#a9b4ae;
    --hub-faint:#7c8781;
    --hub-line:rgba(255,255,255,.10);
    --hub-line-strong:rgba(255,255,255,.18);
    --hub-paper:#1d2320;
    --hub-paper-soft:#202722;
    --hub-blue:#86bcde;
    --hub-green:#68c595;
    --hub-amber:#ddb765;
    --hub-red:#e1796d;
    --hub-shadow:0 18px 52px rgba(0,0,0,.22);
  }
}
.console-shell{max-width:1160px;margin:0 auto;padding:0 24px 48px}
.console-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--hub-line)}
.console-brand{display:inline-flex;align-items:center;gap:12px;color:var(--hub-ink)}
.console-brand:hover{color:var(--hub-ink)}
.console-mark{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--hub-ink);color:var(--hub-paper);font-family:var(--mono);font-size:15px;font-weight:650}
.console-brand b{display:block;font-size:15px;font-weight:680;line-height:1.2}
.console-brand small{display:block;font-family:var(--mono);font-size:11px;color:var(--hub-faint);line-height:1.35;margin-top:2px}
.console-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.console-actions a,.console-actions .con-user{font-size:13px;color:var(--hub-muted)}
.console-actions a:hover{color:var(--hub-blue)}
.console-page .con-user{margin-right:0}
.console-hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:stretch;padding:22px 0 26px}
.console-hero-main{padding:24px 0 10px}
.console-hero h1{font-size:34px;line-height:1.08;font-weight:720;letter-spacing:0;margin:0 0 12px}
.console-hero p{max-width:620px;font-size:15px;color:var(--hub-muted);margin:0}
.console-quick-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.console-action{height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border:1px solid var(--hub-line-strong);border-radius:8px;background:var(--hub-paper);color:var(--hub-ink);font-size:13px;font-weight:580}
.console-action:hover{color:var(--hub-ink);border-color:var(--hub-blue)}
.console-action.primary{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.console-action.primary:hover{color:var(--hub-paper)}
.console-health-overview{background:var(--hub-paper);border:1px solid var(--hub-line);border-radius:8px;padding:16px;box-shadow:var(--hub-shadow)}
.console-health-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.console-health-head span{font-size:13px;font-weight:680}
.console-health-head strong{font-family:var(--mono);font-size:11px;color:var(--hub-faint);font-weight:500;text-align:right}
.console-health-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.console-health-list span{min-width:0;border:1px solid var(--hub-line);border-radius:8px;background:var(--hub-paper-soft);padding:9px 10px;display:grid;grid-template-columns:10px 1fr;column-gap:7px;align-items:center}
.console-health-list b{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.console-health-list small{grid-column:2;font-family:var(--mono);font-size:11px;color:var(--hub-faint);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.console-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.console-main,.console-rail,.console-section{min-width:0}
.console-main,.console-rail{display:grid;gap:26px;align-content:start}
.console-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--hub-line)}
.console-section-head span{display:flex;align-items:baseline;gap:10px;min-width:0}
.console-section-head b{font-size:14px;font-weight:720;white-space:nowrap}
.console-section-head small{font-family:var(--mono);font-size:11px;color:var(--hub-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.console-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.console-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.console-card{min-width:0;min-height:136px;display:flex;flex-direction:column;justify-content:flex-end;gap:7px;padding:14px;background:var(--hub-paper);border:1px solid var(--hub-line);border-radius:8px;color:var(--hub-ink);box-shadow:0 1px 0 rgba(31,38,34,.02);transition:border-color .18s,transform .18s,box-shadow .18s,background .18s}
.console-card:hover{color:var(--hub-ink);border-color:var(--hub-line-strong);box-shadow:0 12px 26px rgba(31,38,34,.07);transform:translateY(-1px)}
.console-card.accent{background:linear-gradient(180deg,var(--hub-paper),var(--hub-paper-soft));border-color:rgba(47,99,136,.22)}
.console-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:auto;color:var(--hub-faint);font-family:var(--mono);font-size:11px;line-height:1.2}
.console-card b{font-size:17px;line-height:1.25;font-weight:690;letter-spacing:0}
.console-card>small{font-size:12px;color:var(--hub-muted);line-height:1.45}
.console-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--hub-faint)}
.console-status small{font-family:var(--mono);font-size:11px;color:inherit}
.console-status.static{color:var(--hub-green)}
.console-status.static.muted{color:var(--hub-faint)}
.console-card.is-up .console-status{color:var(--hub-green)}
.console-card.is-down .console-status{color:var(--hub-red)}
.console-card.is-down{border-color:rgba(188,66,55,.24)}
.console-page .dot{width:8px;height:8px}
.console-page .dot-on{background:var(--hub-green)}
.console-page .dot-todo{background:var(--hub-amber)}
.console-page .dot-ssh{background:var(--hub-faint)}
.console-page .dot-off{background:var(--hub-red)}
.console-page .con-ssh{min-height:0}
.console-page .tunnel{width:100%;max-width:100%;margin-top:6px;border:1px solid var(--hub-line);background:var(--hub-paper-soft);border-radius:7px;color:var(--hub-muted);font-size:11px;line-height:1.45;padding:8px 9px;white-space:nowrap;overflow-x:auto;word-break:normal}
.console-page .tunnel:hover{border-color:var(--hub-line-strong);color:var(--hub-ink)}
.console-page .foot{max-width:none;margin-top:34px;border-top:1px solid var(--hub-line);color:var(--hub-faint)}
@media (max-width:560px){
  .wrap{padding:0 18px 40px}
  .hero h1{font-size:26px}
  .lead{font-size:15.5px}
  .contact a{display:inline-block;margin-bottom:6px}
}
@media (max-width:960px){
  .console-hero,.console-layout{grid-template-columns:1fr}
  .console-hero-main{padding-bottom:0}
  .console-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .console-shell{padding:0 18px 40px}
  .console-nav{align-items:flex-start}
  .console-actions{gap:10px;max-width:170px}
  .console-hero{padding:20px 0 24px}
  .console-hero h1{font-size:29px}
  .console-quick-actions{display:grid;grid-template-columns:1fr 1fr}
  .console-action{width:100%;padding:0 10px}
  .console-health-list,.console-grid,.console-grid.compact{grid-template-columns:1fr}
  .console-card{min-height:118px}
  .console-section-head span{display:grid;gap:2px}
  .console-section-head small{white-space:normal}
}
.hub-public-page,.hub-admin-page,.hub-editor-page{
  --hub-bg:#f6f7f5;
  --hub-ink:#202522;
  --hub-muted:#64706b;
  --hub-faint:#8c9691;
  --hub-line:rgba(31,38,34,.10);
  --hub-line-strong:rgba(31,38,34,.18);
  --hub-paper:#ffffff;
  --hub-paper-soft:#fbfcfb;
  --hub-blue:#2f6388;
  --hub-green:#2f9566;
  --hub-amber:#aa7821;
  --hub-red:#bc4237;
  --hub-shadow:0 18px 48px rgba(31,38,34,.07);
  background:var(--hub-bg);
  color:var(--hub-ink);
  line-height:1.55;
}
@media (prefers-color-scheme: dark){
  .hub-public-page,.hub-admin-page,.hub-editor-page{
    --hub-bg:#141817;
    --hub-ink:#eef3ef;
    --hub-muted:#a9b4ae;
    --hub-faint:#7c8781;
    --hub-line:rgba(255,255,255,.10);
    --hub-line-strong:rgba(255,255,255,.18);
    --hub-paper:#1d2320;
    --hub-paper-soft:#202722;
    --hub-blue:#86bcde;
    --hub-green:#68c595;
    --hub-amber:#ddb765;
    --hub-red:#e1796d;
    --hub-shadow:0 18px 52px rgba(0,0,0,.22);
  }
}
.hub-public-page a,.hub-admin-page a,.hub-editor-page a{color:inherit}
.hub-public-page a:hover,.hub-admin-page a:hover,.hub-editor-page a:hover{color:var(--hub-blue)}
.hub-shell{max-width:1120px;margin:0 auto;padding:0 24px 52px}
.hub-shell.wide{max-width:1260px}
.hub-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--hub-line)}
.hub-brand{display:inline-flex;align-items:center;gap:12px;min-width:0}
.hub-mark{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:var(--hub-ink);color:var(--hub-paper);font-family:var(--mono);font-size:14px;font-weight:700;flex:none}
.hub-brand b{display:block;font-size:15px;font-weight:700;line-height:1.2}
.hub-brand small{display:block;font-family:var(--mono);font-size:11px;color:var(--hub-faint);line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-nav-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.hub-nav-links a{font-size:13px;color:var(--hub-muted)}
.hub-hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch;padding:24px 0}
.hub-hero-main{padding:18px 0 8px;min-width:0}
.hub-eyebrow{font-family:var(--mono);font-size:12px;color:var(--hub-faint);margin-bottom:10px}
.hub-hero h1{font-size:34px;line-height:1.08;font-weight:720;letter-spacing:0;margin:0 0 12px}
.hub-hero p{max-width:660px;font-size:15px;color:var(--hub-muted);margin:0}
.hub-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}
.hub-button,.hub-admin-page button,.hub-editor-page button{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border:1px solid var(--hub-line-strong);
  border-radius:8px;
  background:var(--hub-paper);
  color:var(--hub-ink);
  font:600 13px/1 var(--sans);
  cursor:pointer;
}
.hub-button.primary,.hub-admin-page button.primary,.hub-editor-page button.primary{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.hub-button:hover,.hub-admin-page button:hover,.hub-editor-page button:hover{border-color:var(--hub-blue);color:var(--hub-ink)}
.hub-button.primary:hover,.hub-admin-page button.primary:hover,.hub-editor-page button.primary:hover{color:var(--hub-paper)}
.hub-panel{background:var(--hub-paper);border:1px solid var(--hub-line);border-radius:8px;padding:16px;box-shadow:0 1px 0 rgba(31,38,34,.02)}
.hub-panel.raised{box-shadow:var(--hub-shadow)}
.hub-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.hub-panel-head b{font-size:14px;font-weight:720}
.hub-panel-head small{font-family:var(--mono);font-size:11px;color:var(--hub-faint);white-space:nowrap}
.hub-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hub-kpi{border:1px solid var(--hub-line);border-radius:8px;background:var(--hub-paper-soft);padding:10px}
.hub-kpi span{display:block;font-family:var(--mono);font-size:11px;color:var(--hub-faint);margin-bottom:5px}
.hub-kpi b{display:block;font-size:18px;line-height:1.15;font-weight:720}
.hub-kpi small{display:block;font-size:12px;color:var(--hub-muted);margin-top:3px}
.hub-note{font-size:12px;color:var(--hub-faint);line-height:1.55}
.hub-muted{color:var(--hub-muted)}
.hub-search{position:relative;margin:0 0 14px}
.hub-search input,#skill-search{
  width:100%;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid var(--hub-line-strong);
  border-radius:8px;
  background:var(--hub-paper);
  color:var(--hub-ink);
  font-size:14px;
  outline:none;
}
.hub-search input:focus,#skill-search:focus{border-color:var(--hub-blue);box-shadow:0 0 0 3px rgba(47,99,136,.12)}
.hub-public-page .install-hint{padding:14px 16px;margin:0;font-size:13px;line-height:1.55;border-color:rgba(47,99,136,.18);background:linear-gradient(180deg,var(--hub-paper),var(--hub-paper-soft))}
.hub-public-page .install-hint code,.hub-admin-page code{font-family:var(--mono);font-size:12px;background:var(--hub-paper-soft);border:1px solid var(--hub-line);border-radius:6px;padding:2px 6px}
.hub-public-page .hint-note{display:block;margin-top:8px;color:var(--hub-faint);font-size:12px}
.vis{font-family:var(--mono);font-size:11px;border:1px solid var(--hub-line);border-radius:999px;padding:2px 8px;white-space:nowrap}
.vis-public{color:var(--hub-green);background:rgba(47,149,102,.10);border-color:rgba(47,149,102,.18)}
.vis-private{color:var(--hub-faint)}
.vis-whitelist{color:var(--hub-amber);background:rgba(170,120,33,.10);border-color:rgba(170,120,33,.18)}
.skill-slug{font-family:var(--mono);font-size:11px;color:var(--hub-faint);font-weight:400;margin-left:6px}
.hub-public-page .skill-card{border-radius:8px;border-color:var(--hub-line);margin-bottom:12px;overflow:hidden;background:var(--hub-paper);box-shadow:0 1px 0 rgba(31,38,34,.02)}
.hub-public-page .skill-card .feed-card-head{cursor:pointer;padding:13px 15px;border-bottom:1px solid var(--hub-line);gap:12px}
.hub-public-page .feed-card-title{font-size:14px;font-weight:700;min-width:0}
.hub-public-page .skill-card .feed-list{padding:11px 15px 14px}
.hub-public-page .skill-desc{font-size:13px;color:var(--hub-muted);line-height:1.55;margin:0}
.hub-public-page .skill-tags{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}
.hub-public-page .stag,.hub-admin-page .stag{font-family:var(--mono);font-size:11px;color:var(--hub-muted);background:var(--hub-paper-soft);border:1px solid var(--hub-line);border-radius:999px;padding:2px 8px;cursor:pointer}
.hub-public-page .stag:hover,.hub-admin-page .stag:hover{border-color:var(--hub-line-strong);color:var(--hub-ink)}
.hub-public-page .skill-actions{margin-top:10px}
.hub-public-page .skill-dl{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--hub-muted);background:var(--hub-paper-soft);border:1px solid var(--hub-line);border-radius:6px;padding:4px 10px;text-decoration:none}
.hub-public-page .skill-dl:hover{border-color:var(--hub-line-strong);color:var(--hub-ink)}
.hub-public-page .skill-detail{margin-top:12px;border-top:1px solid var(--hub-line);padding-top:12px}
.hub-text-block{border:1px solid var(--hub-line);border-radius:8px;background:var(--hub-paper);overflow:hidden}
.hub-text-tabs{display:flex;justify-content:flex-end;gap:5px;padding:7px;border-bottom:1px solid var(--hub-line);background:var(--hub-paper-soft)}
.hub-text-tabs button{min-height:28px;padding:0 9px;border:1px solid var(--hub-line);border-radius:7px;background:var(--hub-paper);color:var(--hub-muted);font:600 12px/1 var(--sans);cursor:pointer}
.hub-text-tabs button.on{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.hub-text-source,.hub-text-preview{padding:13px 15px;max-height:520px;overflow:auto}
.hub-text-source{white-space:pre-wrap;font:12.5px/1.65 var(--mono);color:var(--hub-muted);background:var(--hub-paper)}
.hub-text-preview{display:none}
.hub-text-block.is-preview .hub-text-source{display:none}
.hub-text-block.is-preview .hub-text-preview{display:block}
.hub-public-page .foot{max-width:none;margin-top:26px;border-top:1px solid var(--hub-line);color:var(--hub-faint)}
.hub-admin-page{min-height:100vh;font-size:14px}
.hub-admin-shell{max-width:1180px;margin:0 auto;padding:0 24px 52px}
.hub-admin-shell.wide{max-width:1280px}
.hub-admin-main{display:grid;gap:18px}
.hub-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.hub-admin-stack{display:grid;gap:12px}
.hub-inline-form{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:8px;align-items:center;margin:0}
.hub-inline-form.compact{grid-template-columns:140px minmax(140px,1fr) minmax(140px,1fr) auto}
.hub-inline-form label,.nwlabel{color:var(--hub-faint);font-size:12px}
.hub-admin-page input,.hub-admin-page select,.hub-admin-page textarea,.hub-editor-page input,.hub-editor-page select,.hub-editor-page textarea{
  border:1px solid var(--hub-line-strong);
  border-radius:8px;
  background:var(--hub-paper);
  color:var(--hub-ink);
  font:13px/1.45 var(--sans);
  outline:none;
}
.hub-admin-page input:focus,.hub-admin-page select:focus,.hub-admin-page textarea:focus,.hub-editor-page input:focus,.hub-editor-page select:focus,.hub-editor-page textarea:focus{border-color:var(--hub-blue);box-shadow:0 0 0 3px rgba(47,99,136,.12)}
.hub-admin-page input,.hub-admin-page select{min-height:34px;padding:0 10px}
.hub-admin-page textarea{padding:8px 10px;resize:vertical}
.hub-admin-page input[type=file]{padding:6px 8px}
.hub-admin-page .empty{padding:12px;color:var(--hub-faint)}
.hub-admin-page .skrow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--hub-line)}
.hub-admin-page .skrow:last-child{border-bottom:0}
.skrow-main{min-width:0;display:grid;gap:5px}
.sk-title{display:flex;align-items:baseline;gap:7px;min-width:0}
.sk-title b{font-size:14px;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-slug{font-family:var(--mono);font-size:11px;color:var(--hub-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-summary{font-size:12px;color:var(--hub-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-actions{display:flex;align-items:center;gap:10px}
.sk-actions a{font-size:12px;color:var(--hub-blue)}
.memory-digest-preview{background:var(--hub-paper-soft);border:1px solid var(--hub-line);border-radius:8px;padding:14px 16px;max-height:360px;overflow:auto;font-size:13px;line-height:1.62}
.memory-digest-preview h1{font-size:18px;line-height:1.25;margin:0 0 10px}
.memory-digest-preview h2{font-size:15px;line-height:1.35;margin:18px 0 8px}
.memory-digest-preview h3{font-size:13px;line-height:1.35;margin:14px 0 6px}
.memory-digest-preview p,.memory-digest-preview ul,.memory-digest-preview ol{margin-bottom:8px}
.memory-digest-preview li{margin:2px 0}
.memory-log-tabs{display:flex;gap:6px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--hub-line)}
.memory-log-tabs button{min-height:31px;padding:0 10px;border-color:var(--hub-line);background:var(--hub-paper-soft);color:var(--hub-muted);font-size:12px}
.memory-log-tabs button.on{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.memory-log-toolbar{display:grid;gap:10px;margin-bottom:12px}
.memory-log-toolbar .hub-search{margin:0}
.memory-log-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.memory-log-list{border-top:1px solid var(--hub-line)}
.memory-log-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}
.memory-log-pager span{font:600 11.5px/1 var(--mono);color:var(--hub-faint)}
.memory-log-pager button:disabled{opacity:.45;cursor:not-allowed}
.memory-admin-page .project-list{display:flex;flex-wrap:wrap;gap:7px}
.memory-admin-page .project-list a{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid var(--hub-line);border-radius:999px;font-size:12.5px;color:var(--hub-ink);background:var(--hub-paper-soft)}
.memory-admin-page details.add summary{cursor:pointer;list-style:none}
.memory-admin-page details.add summary::-webkit-details-marker{display:none}
.memory-admin-page details.add form{display:grid;gap:8px;margin-top:12px}
.memory-admin-page .row{display:grid;grid-template-columns:118px 84px 78px auto auto minmax(0,1fr) 62px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--hub-line);font-size:13px}
.memory-admin-page .row.archived{opacity:.88}
.memory-admin-page .row .d,.memory-admin-page .row .a,.memory-admin-page .row .tier,.memory-admin-page .row .kind,.memory-admin-page .row .proj{white-space:nowrap;font-size:11px}
.memory-admin-page .row .d,.memory-admin-page .row .a{font-family:var(--mono);color:var(--hub-faint)}
.memory-admin-page .row .tier,.memory-admin-page .row .kind,.memory-admin-page .row .proj{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 7px;border-radius:999px;border:1px solid var(--hub-line);background:var(--hub-paper-soft);color:var(--hub-muted)}
.memory-admin-page .row .proj{color:var(--hub-blue);font-family:var(--mono)}
.memory-admin-page .row .empty-chip{visibility:hidden}
.memory-admin-page .row .s{min-width:0}.memory-admin-page .row .s a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memory-admin-page .row form{margin:0}.memory-admin-page .row button.x,.memory-admin-page .row button.restore{min-width:54px;height:28px;min-height:28px;padding:0 8px;border:1px solid var(--hub-line);background:transparent;color:var(--hub-red);font-size:11px}
.memory-admin-page .row button.restore{color:var(--hub-green);border-color:rgba(47,149,102,.26)}
.hub-editor-page{height:100vh;overflow:hidden;display:flex;flex-direction:column;font-size:14px}
.hub-editor-bar{min-height:58px;display:flex;align-items:center;gap:14px;padding:10px 16px;border-bottom:1px solid var(--hub-line);background:rgba(246,247,245,.82);backdrop-filter:blur(14px)}
@media (prefers-color-scheme: dark){.hub-editor-bar{background:rgba(20,24,23,.84)}}
.hub-editor-bar .back{font-size:13px;color:var(--hub-muted);white-space:nowrap}
.hub-editor-title{min-width:0;flex:1}
.hub-editor-title b{display:block;font-size:14px;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-editor-title small{display:block;margin-top:2px;font-family:var(--mono);font-size:11px;color:var(--hub-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-editor-tabs{display:flex;gap:5px;align-items:center}
.hub-editor-tabs button{min-height:31px;padding:0 11px;font-size:12px;background:var(--hub-paper);border-color:var(--hub-line);color:var(--hub-muted)}
.hub-editor-tabs button.on{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.hub-editor-form{flex:1;display:flex;flex-direction:column;min-height:0;margin:0}
.hub-editor-textarea{flex:1;width:100%;border:0;border-radius:0;background:var(--hub-paper);color:var(--hub-ink);padding:18px 20px;font:13.5px/1.72 var(--mono);resize:none;outline:none}
.hub-editor-textarea:focus{box-shadow:none}
.hub-editor-preview{display:none;flex:1;min-height:0;overflow:auto;background:var(--hub-paper);padding:18px 22px}
.hub-editor-form.is-preview .hub-editor-textarea{display:none}
.hub-editor-form.is-preview .hub-editor-preview{display:block}
.skill-editor-page .layout{flex:1;display:flex;min-height:0}
.skill-editor-page .side{width:318px;flex:none;overflow:auto;border-right:1px solid var(--hub-line);padding:14px;background:var(--hub-paper-soft)}
.skill-editor-page .main{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--hub-paper)}
.skill-editor-page .side form.fields{display:grid;gap:7px}
.skill-editor-page .side label{font-size:12px;color:var(--hub-faint);margin-top:5px}
.skill-editor-page .side input,.skill-editor-page .side select,.skill-editor-page .side textarea{width:100%;box-sizing:border-box;padding:7px 9px;font-size:13px}
.skill-editor-page .side input:disabled{color:var(--hub-faint);font-family:var(--mono);background:transparent}
.skill-editor-page .btn{min-height:32px;margin-top:8px}
.skill-editor-page .mini{font-size:11px;color:var(--hub-blue);margin-left:6px}
.skill-editor-page .fhead{font-size:12px;color:var(--hub-faint);margin-top:16px;border-top:1px solid var(--hub-line);padding-top:12px}
.skill-editor-page .flist{list-style:none;margin:7px 0 0;padding:0;display:grid;gap:3px}
.skill-editor-page .flist li{display:flex;align-items:center;justify-content:space-between;padding:6px 7px;border-radius:7px;font-family:var(--mono);font-size:12px}
.skill-editor-page .flist li.sel{background:var(--hub-paper);box-shadow:inset 0 0 0 1px var(--hub-line)}
.skill-editor-page .flist a.f{color:var(--hub-blue);flex:1;word-break:break-all}
.skill-editor-page .flist a.del{color:var(--hub-red);font-size:11px;margin-left:6px}
.skill-editor-page .fops{display:grid;gap:6px;margin-top:10px}
.skill-editor-page .fops form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}
.skill-editor-page .fops form:has(input[type=file]){grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.skill-editor-page .fops input{min-width:0}
.skill-editor-page .fops input[type=file]{font-size:11px;padding:6px}
.skill-editor-page .fops .b{min-height:30px;padding:0 10px;font-size:11px;white-space:nowrap}
.skill-editor-page .ebar{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid var(--hub-line);background:var(--hub-paper-soft)}
.skill-editor-page .ebar .cur{flex:1;min-width:0;font-family:var(--mono);font-size:12px;color:var(--hub-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skill-editor-page .tabs{display:flex;gap:5px}
.skill-editor-page .tabs a{cursor:pointer;font-size:12px;color:var(--hub-muted);padding:5px 10px;border:1px solid var(--hub-line);border-radius:7px;background:var(--hub-paper)}
.skill-editor-page .tabs a.on{background:var(--hub-ink);border-color:var(--hub-ink);color:var(--hub-paper)}
.skill-editor-page .panes{flex:1;display:flex;min-height:0}
.skill-editor-page .panes textarea{flex:1;border:0;border-radius:0;padding:16px 18px;font:13px/1.7 var(--mono);background:var(--hub-paper);color:var(--hub-ink);resize:none;outline:none}
.skill-editor-page .panes textarea:focus{box-shadow:none}
.skill-editor-page .panes .prev{flex:1;overflow:auto;padding:16px 22px;background:var(--hub-paper)}
.skill-editor-page .panes .prev pre{margin:0;border-radius:8px;overflow:auto}
.skill-editor-page .panes .prev code{font-family:var(--mono);font-size:13px}
.skill-editor-page .prevwarn{color:var(--hub-amber);font-size:12px;margin:0 0 8px}
.memory-project-page .hub-editor-form{padding:16px;background:var(--hub-bg)}
.memory-project-page .hub-editor-textarea{border:1px solid var(--hub-line-strong);border-radius:8px}
@media (max-width:900px){
  .hub-hero,.hub-admin-grid{grid-template-columns:1fr}
  .hub-inline-form,.hub-inline-form.compact{grid-template-columns:1fr}
  .memory-log-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .memory-admin-page .row{grid-template-columns:96px minmax(0,1fr) 62px;align-items:start}
  .memory-admin-page .row .tier,.memory-admin-page .row .kind,.memory-admin-page .row .proj{display:none}
  .memory-admin-page .row .s{grid-column:1/3}
}
@media (max-width:720px){
  .hub-shell,.hub-admin-shell{padding:0 18px 40px}
  .hub-nav{align-items:flex-start}
  .hub-nav-links{gap:10px;max-width:190px}
  .hub-hero{padding:20px 0}.hub-hero h1{font-size:29px}
  .hub-kpi-grid{grid-template-columns:1fr 1fr}
  .hub-admin-page .skrow{grid-template-columns:1fr}
  .sk-actions{justify-content:flex-start}
  .hub-editor-bar{align-items:flex-start;min-height:0}
  .skill-editor-page .layout{display:grid;grid-template-rows:minmax(220px,38vh) minmax(0,1fr)}
  .skill-editor-page .side{width:auto;border-right:0;border-bottom:1px solid var(--hub-line)}
  .memory-log-filters{grid-template-columns:1fr}
}
