/* S1: isolated skill surfaces; native chat, Markdown and research styles stay intact. */
#chappieSkillsS1,#chappieSkillPickerS1,#chappieSkillTrayS1,#chappieSkillNoticeS1{font-family:'Segoe UI','Noto Sans Hebrew',Arial,sans-serif;box-sizing:border-box;direction:rtl}
#chappieSkillsS1 *{box-sizing:border-box}
#chappieSkillsS1{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;padding:0;background:#101012;color:#e5e6e8;text-align:right;overflow:auto;color-scheme:dark}
#chappieSkillsS1::backdrop{background:#101012}
#chappieSkillsS1 [hidden],#chappieSkillPickerS1[hidden],#chappieSkillTrayS1[hidden],#chappieSkillNoticeS1[hidden]{display:none!important}
#chappieSkillsS1 button,#chappieSkillsS1 input,#chappieSkillsS1 textarea,#chappieSkillPickerS1 button,#chappieSkillTrayS1 button{font:inherit}
#chappieSkillsS1 button{cursor:pointer;color:inherit}
#chappieSkillsS1 button:disabled{opacity:.5;cursor:wait}
#chappieSkillsS1 :is(button,input,textarea,summary):focus-visible,#chappieSkillPickerS1 button:focus-visible,#chappieSkillTrayS1 button:focus-visible{outline:2px solid #a7c4e8;outline-offset:3px}
#chappieSkillsS1 .sk-shell{width:min(920px,100%);margin:0 auto;padding:76px 28px 70px}
#chappieSkillsS1 .sk-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#101012f5;border-bottom:1px solid #202125;font-size:14px}
#chappieSkillsS1 .sk-close{width:36px;height:36px;border:0;border-radius:50%;background:#1c1d20;font-size:23px;line-height:1}
#chappieSkillsS1 .sk-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;margin-bottom:32px}
#chappieSkillsS1 h1{font-size:26px;font-weight:600;margin:0 0 8px;line-height:1.4}
#chappieSkillsS1 .sk-subtitle{font-size:14px;line-height:1.65;color:#92959e;margin:0;max-width:390px}
#chappieSkillsS1 .sk-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:4px}
#chappieSkillsS1 .sk-search{background:transparent;border:1px solid #34363c;border-radius:22px;color:#e5e6e8;padding:8px 14px;width:215px;max-width:100%;font-size:14px}
#chappieSkillsS1 .sk-create{position:relative;font-size:14px}
#chappieSkillsS1 .sk-create>summary{cursor:pointer;list-style:none;background:#1c1d20;border:1px solid transparent;border-radius:22px;padding:8px 16px;white-space:nowrap}
#chappieSkillsS1 .sk-create>summary::-webkit-details-marker{display:none}
#chappieSkillsS1 .sk-create[open]>summary{background:#292b30}
#chappieSkillsS1 .sk-create-menu{position:absolute;top:calc(100% + 8px);left:0;width:220px;padding:7px;z-index:5;background:#23252a;border:1px solid #35383e;border-radius:18px;box-shadow:0 12px 36px #0006}
#chappieSkillsS1 .sk-create-menu button{display:flex;align-items:center;gap:10px;background:transparent;border:0;border-radius:10px;width:100%;padding:12px;text-align:right;font-size:14px}
#chappieSkillsS1 .sk-create-menu button:hover{background:#30333a}
#chappieSkillsS1 .sk-section{margin:30px 0 12px;font-size:15px;font-weight:500;color:#9b9ea7}
#chappieSkillsS1 .sk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}
#chappieSkillsS1 .sk-card{display:grid;grid-template-columns:38px minmax(0,1fr) 34px;align-items:center;gap:12px;border:1px solid transparent;border-radius:18px;padding:16px 12px;min-width:0;background:transparent;position:relative}
#chappieSkillsS1 .sk-card:hover,#chappieSkillsS1 .sk-card:focus-within{background:#18191d;border-color:#25272d}
#chappieSkillsS1 .sk-symbol{display:grid;place-items:center;background:#1d1e22;border-radius:50%;width:38px;height:38px;color:#c7c9cf}
#chappieSkillsS1 svg,#chappieSkillPickerS1 svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#chappieSkillsS1 .sk-card-copy{background:transparent;border:0;text-align:right;min-width:0;padding:0}
#chappieSkillsS1 .sk-card-title{display:block;font-size:16px;font-weight:500;line-height:1.5;margin-bottom:4px}
#chappieSkillsS1 .sk-card-desc{display:block;font-size:13px;line-height:1.5;color:#999da6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#chappieSkillsS1 .sk-icon-btn{border:0;border-radius:50%;background:transparent;width:32px;height:32px;display:grid;place-items:center;font-size:23px}
#chappieSkillsS1 .sk-icon-btn:hover{background:#2b2d34}
#chappieSkillsS1 .sk-card-actions{position:absolute;inset-inline-end:10px;top:calc(100% - 8px);z-index:4;width:190px;padding:6px;background:#25272d;border:1px solid #393c44;border-radius:12px;box-shadow:0 10px 30px #0005}
#chappieSkillsS1 .sk-card-actions button{display:block;width:100%;background:transparent;border:0;border-radius:7px;text-align:right;font-size:13px;padding:10px}
#chappieSkillsS1 .sk-card-actions button:hover{background:#343740}
#chappieSkillsS1 .sk-empty{font-size:14px;color:#8c929f;line-height:1.7;padding:18px 2px}
#chappieSkillsS1 .sk-btn{border:1px solid #3c4049;border-radius:10px;background:#262930;padding:10px 16px;font-size:14px}
#chappieSkillsS1 .sk-primary{background:#b9cce5;border-color:#b9cce5;color:#152237}
#chappieSkillsS1 .sk-danger{color:#efb5b5}
#chappieSkillsS1 .sk-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;align-items:center}
#chappieSkillsS1 .sk-back{border:0;background:transparent;color:#aab8cd;padding:0 0 18px;font-size:14px}
#chappieSkillsS1 .sk-label{display:block;font-size:14px;color:#c4c8d0;margin:20px 0 7px}
#chappieSkillsS1 .sk-field{display:block;width:100%;border:1px solid #3b3f49;border-radius:12px;background:#1b1e23;color:#edf0f5;padding:12px 14px;font-size:15px;line-height:1.65;resize:vertical}
#chappieSkillsS1 .sk-instructions{min-height:300px;tab-size:2;unicode-bidi:plaintext}
#chappieSkillsS1 .sk-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#181b20;border:1px solid #30343c;border-radius:16px;padding:22px;font:14px/1.8 'Segoe UI',Arial,sans-serif;unicode-bidi:plaintext}
#chappieSkillsS1 .sk-help{font-size:13px;line-height:1.65;color:#939cab;margin:9px 0 0}
#chappieSkillsS1 .sk-error{background:#302126;color:#f0bbc0;border:1px solid #684048;padding:12px 15px;border-radius:12px;margin:16px 0;font-size:14px;line-height:1.6}
#chappieSkillsS1 .sk-status{font-size:14px;line-height:1.6;color:#b9c9df;min-height:24px;margin:18px 0}
#chappieSkillTrayS1{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:8px 4px;font-size:12px;max-width:100%;color:#cfd7e4;position:relative;z-index:1;pointer-events:auto!important}
#chappieSkillTrayS1 .sk-chip,#chappieSkillTrayS1 button{pointer-events:auto!important}
#chappieSkillTrayS1 .sk-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #3d4655;background:#222a36;border-radius:20px;padding:4px 10px;max-width:100%}
#chappieSkillTrayS1 .sk-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
#chappieSkillTrayS1 button{background:none;border:0;padding:0 2px;color:#c6cfdf;font-size:17px;line-height:1;cursor:pointer}
html body #chappieSkillPickerS1 {
  position: fixed;
  z-index: 1900;
  width: 420px;
  max-width: calc(100vw - 20px);
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--sk-picker-surface, #2b2c2f) !important;
  border: 1px solid #ffffff18;
  border-radius: 20px;
  padding: 8px;
  color: #ededee;
  box-shadow: 0 12px 34px #0008;
  text-align: start;
}
#chappieSkillPickerS1 .sk-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 6px;
}
#chappieSkillPickerS1 .sk-picker-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
#chappieSkillPickerS1 .sk-picker-title svg {width: 16px; height: 16px}
#chappieSkillPickerS1 button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#chappieSkillPickerS1 .sk-picker-manage {
  padding: 6px 9px;
  min-height: 32px;
  font-size: 12px;
  color: #cbd0d8;
}
#chappieSkillPickerS1 .sk-picker-manage:hover {background: #ffffff10}
#chappieSkillPickerS1 button[role=option] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: start;
}
#chappieSkillPickerS1 button[role=option] + button[role=option] {margin-top: 2px}
#chappieSkillPickerS1 button[aria-selected=true] {background: #ffffff14}
#chappieSkillPickerS1 button[role=option]:hover {background: #ffffff0c}
#chappieSkillPickerS1 button[role=option][aria-selected=true]:hover {background: #ffffff18}
#chappieSkillPickerS1 button strong {display: block; font-size: 14px; font-weight: 500}
#chappieSkillPickerS1 button small {display: block; font-size: 12px; color: #c1c6ce; line-height: 1.5; margin-top: 3px}
#chappieSkillPickerS1 .sk-picker-empty {font-size: 13px; color: #c1c6ce; line-height: 1.5; padding: 12px}
#chappieSkillNoticeS1{position:fixed;z-index:3000;bottom:110px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);border:1px solid #3e4858;border-radius:12px;background:#222a35;color:#dbe5f3;padding:12px 18px;font-size:14px;text-align:right;box-shadow:0 8px 25px #0005}
@media(max-width:650px){#chappieSkillsS1 .sk-shell{padding:32px 18px 60px}#chappieSkillsS1 .sk-intro{display:block}#chappieSkillsS1 .sk-tools{margin-top:22px;flex-wrap:nowrap}#chappieSkillsS1 .sk-search{width:100%;min-width:0}#chappieSkillsS1 .sk-grid{grid-template-columns:1fr;gap:4px}#chappieSkillsS1 .sk-card{padding:13px 8px}#chappieSkillsS1 .sk-top{padding:10px 16px}#chappieSkillsS1 h1{font-size:24px}#chappieSkillTrayS1 .sk-chip span{max-width:180px}}
