/* Organization → AI Agents → Skills (owner 2026-11-23). Dark cards like Models; sidebar tree + editor. */
html body .psoo-sk { --sk-line: rgba(255,255,255,.1); --sk-soft: rgba(255,255,255,.04); --sk-accent: #67e8f9; --sk-muted: #94a3b8;
  display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; color: #e2e8f0;
  font-family: var(--gs-font-body, Inter, system-ui, sans-serif); text-align: left; position: relative; }
html body .psoo-sk *, html body .psoo-sk *::before, html body .psoo-sk *::after { box-sizing: border-box; }
html body .psoo-sk svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .psoo-sk button { font-family: inherit; }

/* sidebar */
html body .psoo-sk__side { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; border-radius: 20px; border: 1px solid var(--sk-line); background: rgba(11,14,22,.92);
  position: sticky; top: 90px; max-height: calc(100vh - 110px); min-height: 420px; }
html body .psoo-sk__sidehead h3 { margin: 0 0 2px !important; padding: 0 !important; border: 0 !important; background: none !important; color: #fff !important; font-weight: 800 !important; font-size: 1.1rem !important; line-height: 1.25 !important; font-family: inherit !important; text-transform: none !important; }
html body .psoo-sk__sidehead p { margin: 0; color: var(--sk-muted); font-size: .8rem; line-height: 1.45; }
html body .psoo-sk__sideacts { display: flex; gap: 6px; }
html body .psoo-sk__sideacts .psoo-sk__btn--main { flex: 1 1 auto; justify-content: center; }
html body .psoo-sk__search input { width: 100%; height: 36px; margin: 0; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0b0f1c; color: #fff; font-weight: 500; font-size: .84rem; font-family: inherit; }
html body .psoo-sk__search input:focus { outline: none; border-color: rgba(103,232,249,.55); box-shadow: 0 0 0 3px rgba(103,232,249,.14); }
html body .psoo-sk__tree { flex: 1 1 auto; min-height: 120px; overflow: auto; margin: 0 -6px; padding: 2px 6px 8px; }
html body .psoo-sk__list, html body .psoo-sk__tree ul { list-style: none; margin: 0; padding: 0; }
html body .psoo-sk__node { margin: 0; padding: 0; position: relative; }
html body .psoo-sk__row { display: flex; align-items: center; gap: 2px; padding-left: calc(var(--d, 0) * 14px); border-radius: 10px; position: relative; }
html body .psoo-sk__row:hover { background: var(--sk-soft); }
html body .psoo-sk__fold, html body .psoo-sk__open { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px; height: auto; min-height: 34px; margin: 0; padding: 6px 6px; border: 0; border-radius: 10px;
  background: none; color: #e2e8f0; font-size: .84rem; font-weight: 600; text-align: left; cursor: pointer; line-height: 1.25; text-transform: none; letter-spacing: 0; box-shadow: none; }
html body .psoo-sk__fold svg { color: #fbbf24; }
html body .psoo-sk__open svg { color: var(--sk-muted); }
html body .psoo-sk__chev { display: inline-grid; place-items: center; width: 14px; }
html body .psoo-sk__chev svg { width: 12px; height: 12px; color: var(--sk-muted); transition: transform .15s; }
html body .psoo-sk__fold[aria-expanded="true"] .psoo-sk__chev svg { transform: rotate(90deg); }
html body .psoo-sk__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .psoo-sk__name small { display: block; color: var(--sk-muted); font-size: .7rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
html body .psoo-sk__count { color: var(--sk-muted); font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.06); }
html body .psoo-sk__node.is-on > .psoo-sk__row { background: rgba(103,232,249,.12); box-shadow: inset 3px 0 0 var(--sk-accent); }
html body .psoo-sk__node.is-on > .psoo-sk__row .psoo-sk__open, html body .psoo-sk__node.is-on > .psoo-sk__row .psoo-sk__open svg { color: #fff; }
html body .psoo-sk__node.is-ctx > .psoo-sk__row { background: rgba(251,191,36,.08); }
html body .psoo-sk__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
html body .psoo-sk__more { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--sk-muted); cursor: pointer; opacity: 0; box-shadow: none; }
html body .psoo-sk__row:hover .psoo-sk__more, html body .psoo-sk__more:focus-visible, html body .psoo-sk__node.is-on > .psoo-sk__row .psoo-sk__more { opacity: 1; }
html body .psoo-sk__more:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (hover: none) { html body .psoo-sk__more { opacity: 1; } }
html body .psoo-sk :focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 1px; }
html body .psoo-sk__none { margin: 8px 6px; color: var(--sk-muted); font-size: .82rem; }
html body .psoo-sk__sidefoot { border-top: 1px solid var(--sk-line); padding-top: 10px; }
html body .psoo-sk__link { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 2px; border: 0; background: none; color: var(--sk-accent); font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: none; text-transform: none; }

/* drag and drop */
html body .psoo-sk__row[draggable="true"] { cursor: grab; }
html body .psoo-sk.is-dragging, html body .psoo-sk.is-dragging * { cursor: grabbing !important; }
html body .psoo-sk__node.is-dragging > .psoo-sk__row { opacity: .4; }
html body .psoo-sk__node.is-drop-into > .psoo-sk__row { background: rgba(103,232,249,.16); box-shadow: inset 0 0 0 2px var(--sk-accent); }
html body .psoo-sk__node.is-drop-before > .psoo-sk__row::before, html body .psoo-sk__node.is-drop-after > .psoo-sk__row::after {
  content: ""; position: absolute; left: calc(var(--d, 0) * 14px); right: 0; height: 2px; border-radius: 2px; background: var(--sk-accent); pointer-events: none; }
html body .psoo-sk__node.is-drop-before > .psoo-sk__row::before { top: -1px; }
html body .psoo-sk__node.is-drop-after > .psoo-sk__row::after { bottom: -1px; }
html body .psoo-sk__rootdrop { display: none; margin: 6px 0 0; padding: 10px; border-radius: 10px; border: 1px dashed rgba(103,232,249,.35); color: var(--sk-muted); font-size: .76rem; text-align: center; }
html body .psoo-sk.is-dragging .psoo-sk__rootdrop { display: block; }
html body .psoo-sk__rootdrop.is-over { background: rgba(103,232,249,.1); color: #fff; }
@media (forced-colors: active) { html body .psoo-sk__node.is-drop-before > .psoo-sk__row::before, html body .psoo-sk__node.is-drop-after > .psoo-sk__row::after { background: Highlight; } }

/* buttons */
html body .psoo-sk__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin: 0; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  color: #fff !important; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: 0; box-shadow: none; line-height: 1; }
html body .psoo-sk__btn:hover { background: rgba(255,255,255,.1); }
html body .psoo-sk__btn--main { border-color: transparent; background: linear-gradient(135deg, #b608c9, #3b82f6); }
html body .psoo-sk__btn--main:hover { background: linear-gradient(135deg, #c21bd4, #4a8ff7); }
html body .psoo-sk__btn--danger { border-color: transparent; background: #dc2626; }
html body .psoo-sk__btn:disabled { opacity: .45; cursor: default; }
html body .psoo-sk__icon { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #e2e8f0; cursor: pointer; box-shadow: none; }
html body .psoo-sk__icon:hover { background: rgba(255,255,255,.1); color: #fff; }

/* main */
html body .psoo-sk__main { min-width: 0; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--sk-line); background: rgba(11,14,22,.92); min-height: 560px; overflow: hidden; }
html body .psoo-sk__loading { margin: auto; color: var(--sk-muted); }
html body .psoo-sk__welcome { margin: auto; max-width: 620px; padding: 48px 28px; text-align: center; }
html body .psoo-sk__wico { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(103,232,249,.1); border: 1px solid rgba(103,232,249,.35); color: var(--sk-accent); margin-bottom: 14px; }
html body .psoo-sk__wico svg { width: 26px; height: 26px; }
html body .psoo-sk__welcome h3 { margin: 0 0 8px !important; color: #fff !important; font-weight: 800 !important; font-size: 1.35rem !important; line-height: 1.25 !important; font-family: inherit !important; text-transform: none !important; border: 0 !important; background: none !important; padding: 0 !important; }
html body .psoo-sk__welcome > p { margin: 0 auto 18px; color: var(--sk-muted); font-size: .9rem; line-height: 1.6; }
html body .psoo-sk__wacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
html body .psoo-sk__how { margin: 0 auto; padding: 14px 16px 14px 34px; max-width: 520px; text-align: left; border-radius: 14px; border: 1px dashed rgba(255,255,255,.12); color: #cbd5e1; font-size: .8rem; line-height: 1.6; }
html body .psoo-sk__how b { color: #fff; margin-right: 4px; }

html body .psoo-sk__dochead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--sk-line); flex-wrap: wrap; }
html body .psoo-sk__backbtn { display: none; }
html body .psoo-sk__crumbs { flex: 1 1 200px; min-width: 0; color: var(--sk-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .psoo-sk__docacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html body .psoo-sk__status { color: var(--sk-muted); font-size: .76rem; margin-right: 4px; }
html body .psoo-sk__meta { padding: 14px 16px 6px; }
html body .psoo-sk.psoo-sk .psoo-sk__titlefield input[type="text"] { width: 100% !important; height: auto !important; margin: 0 !important; padding: 4px 0 !important; border: 0 !important; border-bottom: 1px solid transparent !important; border-radius: 0 !important; background: none !important; color: #fff !important; box-shadow: none !important; font-weight: 800 !important; font-size: 1.45rem !important; line-height: 1.25 !important; font-family: inherit !important; box-shadow: none; }
html body .psoo-sk.psoo-sk .psoo-sk__titlefield input[type="text"]:focus { outline: none; border-bottom-color: rgba(103,232,249,.5) !important; }
html body .psoo-sk__skillinfo { margin: 8px 0 4px; border-radius: 12px; border: 1px solid var(--sk-line); background: var(--sk-soft); }
html body .psoo-sk__skillinfo summary { cursor: pointer; padding: 9px 12px; color: #e2e8f0; font-size: .8rem; font-weight: 700; }
html body .psoo-sk__skillinfo summary small { margin-left: 8px; color: var(--sk-muted); font-weight: 500; }
html body .psoo-sk__skillgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 4px 12px 12px; }
html body .psoo-sk__field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
html body .psoo-sk__field > span { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sk-muted); }
html body .psoo-sk__field > span i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
html body .psoo-sk__field input, html body .psoo-sk__field select, html body .psoo-sk__field textarea { width: 100%; margin: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0b0f1c; color: #fff; font-weight: 500; font-size: .85rem; line-height: 1.45; font-family: inherit; box-shadow: none; }
html body .psoo-sk__field textarea { resize: vertical; min-height: 58px; }
html body .psoo-sk__field input:focus, html body .psoo-sk__field select:focus, html body .psoo-sk__field textarea:focus { outline: none; border-color: rgba(103,232,249,.55); box-shadow: 0 0 0 3px rgba(103,232,249,.14); }
html body .psoo-sk__field small { color: var(--sk-muted); font-size: .72rem; line-height: 1.4; }

html body .psoo-sk__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 6px 12px; border-top: 1px solid var(--sk-line); border-bottom: 1px solid var(--sk-line); background: rgba(255,255,255,.02); position: sticky; top: 0; z-index: 2; }
html body .psoo-sk__tool { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: #cbd5e1; cursor: pointer; box-shadow: none; }
html body .psoo-sk__tool:hover { background: rgba(255,255,255,.08); color: #fff; }
html body .psoo-sk__sep { width: 1px; height: 20px; margin: 0 4px; background: var(--sk-line); }
html body .psoo-sk__modes { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--sk-line); }
html body .psoo-sk__modes button { height: 26px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--sk-muted); font-size: .74rem; font-weight: 700; cursor: pointer; box-shadow: none; text-transform: none; }
html body .psoo-sk__modes button[aria-pressed="true"] { background: rgba(103,232,249,.16); color: #fff; }

html body .psoo-sk__edit { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 460px; }
html body .psoo-sk__edit[data-mode="write"] { grid-template-columns: minmax(0, 1fr); }
html body .psoo-sk__edit[data-mode="write"] .psoo-sk__preview { display: none; }
html body .psoo-sk__edit[data-mode="preview"] { grid-template-columns: minmax(0, 1fr); }
html body .psoo-sk__edit[data-mode="preview"] .psoo-sk__src { display: none; }
html body .psoo-sk__src { display: flex; margin: 0; border-right: 1px solid var(--sk-line); }
html body .psoo-sk__src textarea { flex: 1 1 auto; width: 100%; min-height: 460px; margin: 0; padding: 18px 20px; border: 0; border-radius: 0; resize: vertical; background: none; color: #e2e8f0;
  font: 500 .88rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; box-shadow: none; }
html body .psoo-sk__src textarea:focus { outline: none; background: rgba(255,255,255,.015); }
html body .psoo-sk__foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--sk-line); color: var(--sk-muted); font-size: .72rem; }

/* rendered Markdown */
html body .psoo-sk__preview { padding: 18px 22px 28px; overflow: auto; color: #dbe4ef; font-size: .92rem; line-height: 1.7; word-wrap: break-word; }
html body .psoo-sk__preview > :first-child { margin-top: 0 !important; }
html body .psoo-sk__preview h1, html body .psoo-sk__preview h2, html body .psoo-sk__preview h3, html body .psoo-sk__preview h4, html body .psoo-sk__preview h5, html body .psoo-sk__preview h6 {
  margin: 1.4em 0 .5em !important; padding: 0 !important; border: 0 !important; background: none !important; color: #fff !important; font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.3 !important; }
html body .psoo-sk__preview h1 { font-size: 1.6rem !important; font-weight: 850 !important; }
html body .psoo-sk__preview h2 { font-size: 1.25rem !important; font-weight: 800 !important; padding-bottom: .3em !important; border-bottom: 1px solid var(--sk-line) !important; }
html body .psoo-sk__preview h3 { font-size: 1.05rem !important; font-weight: 800 !important; }
html body .psoo-sk__preview h4, html body .psoo-sk__preview h5, html body .psoo-sk__preview h6 { font-size: .95rem !important; font-weight: 700 !important; }
html body .psoo-sk__preview p, html body .psoo-sk__preview ul, html body .psoo-sk__preview ol, html body .psoo-sk__preview blockquote, html body .psoo-sk__preview pre { margin: 0 0 1em; }
html body .psoo-sk__preview ul, html body .psoo-sk__preview ol { padding-left: 1.5em; }
html body .psoo-sk__preview li { margin: .2em 0; }
html body .psoo-sk__preview li.is-task { list-style: none; margin-left: -1.3em; }
html body .psoo-sk__preview a { color: var(--sk-accent); }
html body .psoo-sk__preview strong { color: #fff; }
html body .psoo-sk__preview code { padding: .12em .4em; border-radius: 6px; background: rgba(255,255,255,.08); font: .85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
html body .psoo-sk__preview pre { padding: 14px 16px; border-radius: 12px; background: #070a12; border: 1px solid var(--sk-line); overflow: auto; }
html body .psoo-sk__preview pre code { padding: 0; background: none; font-size: .82rem; line-height: 1.6; }
html body .psoo-sk__preview pre.psoo-sk__fm { color: var(--sk-muted); font: .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
html body .psoo-sk__preview blockquote { padding: 4px 14px; border-left: 3px solid rgba(103,232,249,.5); color: #cbd5e1; background: rgba(103,232,249,.04); border-radius: 0 10px 10px 0; }
html body .psoo-sk__preview hr { border: 0; border-top: 1px solid var(--sk-line); margin: 1.5em 0; }
html body .psoo-sk__preview img { max-width: 100%; border-radius: 10px; }
html body .psoo-sk__tablewrap { overflow-x: auto; margin: 0 0 1em; }
html body .psoo-sk__preview table { border-collapse: collapse; width: 100%; font-size: .86rem; }
html body .psoo-sk__preview th, html body .psoo-sk__preview td { padding: 7px 10px; border: 1px solid var(--sk-line); text-align: left; vertical-align: top; }
html body .psoo-sk__preview th { background: rgba(255,255,255,.05); color: #fff; }
html body .psoo-sk__read { padding: 18px 6px 0; }
html body .psoo-sk__rtitle { margin: 0 22px 6px !important; color: #fff !important; font-weight: 850 !important; font-size: 1.5rem !important; line-height: 1.25 !important; font-family: inherit !important; border: 0 !important; background: none !important; padding: 0 !important; text-transform: none !important; }
html body .psoo-sk__rdesc { margin: 0 22px 6px; color: var(--sk-muted); font-size: .88rem; }

/* toast, menu, dialog */
html body .psoo-sk__toast { position: fixed; left: 50%; bottom: 26px; z-index: 100000; margin: 0; padding: 10px 18px; border-radius: 999px; background: #0f172a; border: 1px solid rgba(143,240,164,.4); color: #8ff0a4;
  font-size: .84rem; font-weight: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
html body .psoo-sk__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html body .psoo-sk__toast.is-err { color: #ff9a7b; border-color: rgba(255,154,123,.45); }
html body .psoo-sk__menu { position: fixed; inset: auto; margin: 0; min-width: 220px; max-width: 300px; padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: #0e1320; color: #e2e8f0; box-shadow: 0 18px 40px rgba(0,0,0,.5); font-family: var(--gs-font-body, Inter, system-ui, sans-serif); }
html body .psoo-sk__menu { display: none; }
html body .psoo-sk__menu:is(:popover-open, .is-open) { display: block; }
html body .psoo-sk__menu button { display: block; width: 100%; margin: 0; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: #e2e8f0; font-weight: 600; font-size: .82rem; line-height: 1.3; font-family: inherit; text-align: left; cursor: pointer; box-shadow: none; text-transform: none; }
html body .psoo-sk__menu button:hover, html body .psoo-sk__menu button:focus-visible { background: rgba(103,232,249,.12); color: #fff; outline: none; }
html body .psoo-sk__menu button.is-danger { color: #ff9a7b; }
html body .psoo-sk__menu hr { margin: 5px 6px; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
html body .psoo-sk__dlg { width: min(460px, calc(100vw - 32px)); padding: 0; border-radius: 20px; border: 1px solid rgba(255,255,255,.14); background: #0e1320; color: #e2e8f0; font-family: var(--gs-font-body, Inter, system-ui, sans-serif); }
html body .psoo-sk__dlg:modal { overscroll-behavior: contain; }
html body .psoo-sk__dlg::backdrop { background: rgba(2,4,10,.65); overflow: hidden; overscroll-behavior: contain; }
html body .psoo-sk__dlgbox { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 22px; }
html body .psoo-sk__dlgbox h1 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: #fff !important; font-weight: 800 !important; font-size: 1.1rem !important; line-height: 1.3 !important; font-family: inherit !important; text-transform: none !important; }
html body .psoo-sk__dlgbox p { margin: 0; color: var(--sk-muted); font-size: .86rem; line-height: 1.5; }
html body .psoo-sk__dlgbox footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* narrow screens: list first, the open document replaces it */
@media (max-width: 860px) {
  html body .psoo-sk { grid-template-columns: minmax(0, 1fr); }
  html body .psoo-sk__side { position: static; max-height: none; min-height: 0; }
  html body .psoo-sk.is-doc .psoo-sk__side { display: none; }
  html body .psoo-sk:not(.is-doc) .psoo-sk__main { min-height: 0; }
  html body .psoo-sk:not(.is-doc) .psoo-sk__main:has(.psoo-sk__welcome.is-pick) { display: none; }
  html body .psoo-sk__backbtn { display: inline-grid; }
  html body .psoo-sk__edit, html body .psoo-sk__edit[data-mode="split"] { grid-template-columns: minmax(0, 1fr); }
  html body .psoo-sk__edit[data-mode="split"] .psoo-sk__src { border-right: 0; border-bottom: 1px solid var(--sk-line); }
  html body .psoo-sk__skillgrid { grid-template-columns: minmax(0, 1fr); }
  html body .psoo-sk__modes { margin-left: 0; }
  html body .psoo-sk__src textarea { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) { html body .psoo-sk__toast, html body .psoo-sk__chev svg { transition: none; } }
