/* YapThing sidebar — calm project list, quiet chat rows, premium three-dot actions. */
#yap-tool-menu>#yap-nav-projects{
  margin:10px 0 2px!important;padding:5px 10px!important;min-height:32px!important;
  background:transparent!important;color:var(--fg)!important;
  opacity:.72;font-size:12px!important;font-weight:700!important;
  letter-spacing:0!important;
}
#yap-tool-menu>#yap-nav-projects:hover{opacity:1;background:var(--bubble)!important}
#yap-tool-menu>#yap-nav-projects .yap-nav-symbol{display:none!important}
#yap-tool-menu>#yap-nav-projects::after{content:"⌄"!important;font-size:16px!important;opacity:.65}
#yap-tool-menu>.yap-project-navigation{
  margin:0 0 7px!important;padding:0 3px 5px!important;
  background:transparent!important;border:0!important;overflow:visible!important;
  max-height:none!important;min-height:0!important;
}
#yap-tool-menu>.yap-project-navigation[hidden]{display:none!important}
#yap-tool-menu .yap-project-list{display:grid;gap:1px;min-width:0}
#yap-tool-menu .yap-project-item{position:relative;min-width:0;border-radius:10px}
#yap-tool-menu .yap-project-folder{
  margin:0!important;padding:0!important;min-width:0;max-width:100%;
  border:0!important;border-radius:10px;background:transparent!important;
  overflow:visible!important;
}
#yap-tool-menu .yap-project-folder>summary{
  box-sizing:border-box;display:flex!important;align-items:center;gap:10px;
  min-width:0;width:100%;min-height:38px;padding:8px 38px 8px 11px!important;
  margin:0!important;border:0!important;border-radius:9px;
  font:500 13px/1.35 Inter,system-ui,sans-serif!important;
  color:var(--fg)!important;background:transparent!important;
  list-style:none;overflow:hidden;white-space:nowrap;
}
#yap-tool-menu .yap-project-folder>summary::-webkit-details-marker{display:none}
#yap-tool-menu .yap-project-folder>summary::before,#yap-tool-menu .yap-project-folder>summary::after{display:none!important;content:none!important}
#yap-tool-menu .yap-project-folder>summary .yap-project-icon{
  flex:none;display:grid;place-items:center;width:17px;height:18px;
  font:700 14px/1 ui-monospace,monospace;color:var(--fg);opacity:.58;
}
#yap-tool-menu .yap-project-folder>summary .yap-project-title{
  flex:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#yap-tool-menu .yap-project-folder>summary .yap-project-locked-icon{font-size:11px;flex:none}
#yap-tool-menu .yap-project-item:hover>.yap-project-folder>summary,
#yap-tool-menu .yap-project-item:focus-within>.yap-project-folder>summary,
#yap-tool-menu .yap-project-folder>summary:focus-visible{
  background:var(--bubble)!important;
}
#yap-tool-menu .yap-project-folder[open]>summary{font-weight:650!important;background:color-mix(in srgb,var(--accent) 9%,transparent)!important}
#yap-tool-menu .yap-project-folder.yap-drop-ready>summary{
  background:color-mix(in srgb,var(--accent) 18%,var(--panel))!important;
  outline:2px dashed var(--accent)!important;outline-offset:-2px;
}
#yap-tool-menu .yap-project-folder.yap-project-order-target>summary{
  box-shadow:inset 0 3px var(--accent);
}
#yap-tool-menu .yap-project-folder.yap-project-dragging{opacity:.55}
#yap-tool-menu .yap-project-folder[open]>.yap-chat-entry{display:flex;align-items:center;position:relative;padding-left:20px!important;min-width:0}
#yap-tool-menu .yap-project-folder[open]>.yap-chat-entry .yap-project-chat{
  min-width:0!important;flex:1!important;width:auto!important;
  padding:6px 8px!important;min-height:34px!important;border:0!important;
  font:450 12px/1.35 Inter,system-ui,sans-serif!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-align:left;background:transparent;color:var(--fg);
}
#yap-tool-menu .yap-project-folder[open]>.yap-chat-entry:hover{
  background:var(--bubble);border-radius:8px;
}
#yap-tool-menu .yap-project-folder>.yap-chat-entry .yap-delete-item{
  flex:none!important;width:26px!important;min-width:26px!important;
  min-height:28px!important;padding:3px!important;
  opacity:0;background:transparent!important;
}
#yap-tool-menu .yap-project-folder>.yap-chat-entry:hover .yap-delete-item,
#yap-tool-menu .yap-project-folder>.yap-chat-entry:focus-within .yap-delete-item{opacity:.72}
#yap-tool-menu .yap-project-navigation .yap-project-chats-more,
#yap-tool-menu .yap-project-navigation .yap-project-show-more,
#yap-tool-menu .yap-project-navigation>button{
  min-height:30px!important;width:auto!important;margin:2px 9px 2px 25px!important;
  padding:5px 8px!important;background:transparent!important;border:0!important;
  border-radius:8px;color:var(--fg)!important;opacity:.65;
  font-size:12px!important;font-weight:500!important;text-align:left;
}
#yap-tool-menu .yap-project-navigation .yap-project-chats-more:hover,
#yap-tool-menu .yap-project-navigation .yap-project-show-more:hover,
#yap-tool-menu .yap-project-navigation>button:hover{opacity:1;background:var(--bubble)!important}
#yap-tool-menu .yap-project-navigation .yap-project-show-more[hidden]{display:none!important}
#yap-tool-menu .yap-project-menu{
  position:absolute;right:4px;top:4px;z-index:12;
  width:29px;min-height:30px;opacity:0;pointer-events:none;
}
#yap-tool-menu .yap-project-item:hover>.yap-project-menu,
#yap-tool-menu .yap-project-item:focus-within>.yap-project-menu,
#yap-tool-menu .yap-project-menu[open]{opacity:1;pointer-events:auto}
#yap-tool-menu .yap-project-menu>.yap-project-menu-trigger{
  width:29px;height:30px;min-height:30px;display:grid;place-items:center;
  list-style:none;cursor:pointer;border:0;border-radius:8px;
  color:var(--fg);background:transparent;
  font-size:22px;font-weight:700;line-height:1;
}
#yap-tool-menu .yap-project-menu>.yap-project-menu-trigger::-webkit-details-marker{display:none}
#yap-tool-menu .yap-project-menu>.yap-project-menu-trigger:hover,
#yap-tool-menu .yap-project-menu[open]>.yap-project-menu-trigger{background:var(--bubble)}
#yap-tool-menu .yap-project-menu-panel{
  position:absolute;top:31px;right:0;z-index:100;width:198px;
  box-sizing:border-box;padding:6px;border-radius:13px;
  background:var(--panel);border:1px solid var(--border);
  box-shadow:0 12px 35px #101d182d;
}
#yap-tool-menu .yap-project-menu-panel button{
  box-sizing:border-box;display:block;width:100%!important;min-height:37px!important;
  border:0!important;border-radius:8px;padding:8px 10px!important;
  text-align:left;font:500 12px/1.35 Inter,system-ui,sans-serif!important;
  color:var(--fg)!important;background:transparent!important;
}
#yap-tool-menu .yap-project-menu-panel button:hover{background:var(--bubble)!important}
#yap-tool-menu .yap-project-menu-panel button:disabled{opacity:.4;cursor:not-allowed;background:transparent!important}
#yap-tool-menu .yap-project-menu-panel .yap-project-danger{color:#ae4848!important}
#yap-tool-menu .yap-project-menu-panel small{display:block;padding:7px 10px;font-size:10px;line-height:1.4;opacity:.7}
.yap-project-rename-dialog{
  width:min(390px,calc(100vw - 30px));max-width:none;padding:22px;
  border:1px solid var(--border,#dce6dc);border-radius:18px;
  background:var(--panel,#fff);color:var(--fg,#233a2d);
  box-shadow:0 22px 70px #091c163d;
}
.yap-project-rename-dialog::backdrop{background:#13261c90}
.yap-project-rename-dialog h3{margin:0 0 18px;font-size:19px;letter-spacing:-.025em}
.yap-project-rename-dialog label{display:grid;gap:8px;font:600 12px/1.3 system-ui}
.yap-project-rename-dialog input{width:100%;box-sizing:border-box;min-height:44px;padding:10px;border-radius:10px;border:1px solid var(--border);background:var(--panel);color:inherit;font:14px system-ui}
.yap-project-rename-dialog .yap-project-rename-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:17px}
.yap-project-rename-dialog button{min-height:40px;border-radius:10px;padding:9px 14px;border:1px solid var(--border);background:var(--bubble);color:inherit}
.yap-project-rename-dialog button[type=submit]{background:var(--accent,#306c48);color:white}
.yap-project-rename-error{font-size:12px;color:#b1433c;min-height:0;margin:6px 0}
#yap-tool-menu .yap-nav-recents{margin-top:8px!important;padding-top:9px!important;border-top:1px solid var(--border)!important}
#yap-tool-menu .yap-nav-recents h3{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:650!important;opacity:.74}
#yap-tool-menu #history>.yap-chat-entry{display:flex;align-items:center;min-height:36px;padding:1px 4px;border-radius:9px}
#yap-tool-menu #history>.yap-chat-entry>button:first-child{
  flex:1;min-width:0!important;min-height:34px!important;padding:7px 8px!important;
  font:450 13px/1.35 Inter,system-ui,sans-serif!important;
}
#yap-tool-menu #history>.yap-chat-entry .yap-chat-actions{flex:none}
#yap-tool-menu .yap-chat-entry .yap-active-dots,
#yap-tool-menu .yap-project-folder>summary .yap-active-dots{
  display:inline-flex;gap:3px;flex:none;align-items:center;
  margin:0 5px;min-width:24px;height:15px;
}
#yap-tool-menu .yap-active-dots i{
  width:5px;height:5px;border-radius:50%;display:block;
  background:var(--accent,#5c9c52);animation:yap-work-dot 1.15s ease-in-out infinite;
}
#yap-tool-menu .yap-active-dots i:nth-child(2){background:#8bbd66;animation-delay:.17s}
#yap-tool-menu .yap-active-dots i:nth-child(3){background:#cadf73;animation-delay:.34s}
@keyframes yap-work-dot{0%,65%,100%{transform:translateY(0);opacity:.5}35%{transform:translateY(-3px);opacity:1}}
@media(max-width:700px){
 #yap-tool-menu .yap-project-menu{opacity:.7;pointer-events:auto}
 #yap-tool-menu .yap-project-menu-panel{right:0}
 #yap-tool-menu .yap-project-folder>.yap-chat-entry .yap-delete-item{opacity:.65}
}
@media(prefers-reduced-motion:reduce){
 #yap-tool-menu .yap-active-dots i{animation:none;opacity:1}
}
/* Final pass: the Projects heading is a section label, not a second navigation tile. */
#yap-tool-menu #yap-nav-projects{
 display:flex!important;align-items:center!important;gap:0!important;
 margin:12px 4px 2px!important;padding:5px 9px!important;
 width:calc(100% - 8px)!important;min-height:30px!important;
 font:650 12px/1.4 Inter,ui-sans-serif,system-ui,sans-serif!important;
 letter-spacing:0!important;text-transform:none!important;
 color:var(--fg)!important;opacity:.7;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
#yap-tool-menu #yap-nav-projects:hover,#yap-tool-menu #yap-nav-projects[aria-expanded="true"]{
 background:transparent!important;opacity:1;
}
#yap-tool-menu #yap-nav-projects .yap-nav-symbol{display:none!important}
#yap-tool-menu #yap-nav-projects::after{content:"⌄"!important;margin-left:auto!important;font-size:15px!important}
#yap-tool-menu .yap-project-navigation{
 padding:0 4px 5px!important;margin:0 0 6px!important;min-width:0;
 max-height:none!important;min-height:0!important;overflow:visible!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;
}
#yap-tool-menu .yap-project-navigation .yap-project-settings-link{display:none!important}
#yap-tool-menu .yap-project-navigation .yap-project-list{
 background:transparent!important;border:0!important;padding:0!important;
}
#yap-tool-menu .yap-project-folder>summary .yap-project-icon svg{
 display:block;width:17px;height:17px;stroke:currentColor;
}
