/* ChatFox import panel: calm integrated styling, presentation only.
   Existing buttons, handlers, selectors and background tasks remain intact. */

/* A single white framed unit when the import section is expanded. */
#root .dolphin-sidebar:not(.w-14) .cf-import-dock:has(> #cf-profile-import-toggle[aria-expanded="true"]){
  box-sizing:border-box!important;
  margin:7px 8px 12px!important;
  padding:6px 7px 8px!important;
  border:1px solid #d7e4f2!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(25,67,112,.045)!important;
  min-width:0!important;
  overflow:visible!important;
}

/* Header belongs to the frame, rather than resembling another bright action. */
#root .dolphin-sidebar:not(.w-14) .cf-import-dock:has(> #cf-profile-import-toggle[aria-expanded="true"]) > #cf-profile-import-toggle{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  background:#f3f8fe!important;
  border:0!important;
  border-radius:8px!important;
  width:100%!important;
  margin:0!important;
  padding:10px 11px!important;
  min-height:40px!important;
  color:#1d5d9d!important;
  font-size:13px!important;
  font-weight:700!important;
}
#root .dolphin-sidebar:not(.w-14) .cf-import-dock > #cf-profile-import-toggle::after{
  content:"";
  display:inline-block;
  margin-left:auto;
  width:7px;
  height:7px;
  border-right:1.7px solid #6d8faf;
  border-bottom:1.7px solid #6d8faf;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .15s;
  flex-shrink:0;
}
#root .dolphin-sidebar:not(.w-14) .cf-import-dock > #cf-profile-import-toggle[aria-expanded="true"]::after{
  transform:translateY(2px) rotate(225deg);
}

/* Remove nested borders so the open panel has only one gentle frame. */
#root .dolphin-sidebar:not(.w-14) .cf-import-dock:has(> #cf-profile-import-toggle[aria-expanded="true"]) > #blocked-import-widget{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:9px 2px 2px!important;
  margin:0!important;
  border-radius:0!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
}
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"]{
  display:grid!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"] > button:not(.cf-folder-picker-toggle){
  background:#edf5fd!important;
  color:#285f92!important;
  border:1px solid #c8dcee!important;
  border-radius:8px!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-size:12px!important;
  font-weight:650!important;
  min-height:38px!important;
  height:auto!important;
  padding:8px 10px!important;
  white-space:normal!important;
  line-height:1.35!important;
  cursor:pointer!important;
  transition:background-color .15s,border-color .15s!important;
}
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"] > button:not(.cf-folder-picker-toggle):hover{
  background:#e0efff!important;
  border-color:#9cc8ef!important;
}
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"] > button:not(.cf-folder-picker-toggle):disabled{
  opacity:.55!important;
  cursor:wait!important;
}

/* Preserve a distinct warning tone when stopping a running check. */
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"] > button[data-cf-action="stop"]{
  background:#fff3ed!important;color:#a84830!important;border-color:#ecc9bb!important;
}
#root .dolphin-sidebar:not(.w-14) #blocked-import-widget > div[style*="grid-template-columns"] > button[data-cf-action="stop"]:hover{
  background:#ffe8de!important;
}
@container (max-width:250px) {
  #blocked-import-widget > div[style*="grid-template-columns"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
