/* PE-Class v1.20.13 — scoped save-state and responsive placement polish. */

/* Browser-title Save now follows the same clean/dirty language as the other
   Home-screen card actions. */
#settingsCWorkspace.settingsC :is(
  #saveBrowserTabTitle11622,
  .peBrowserTitleHeaderSaveProxy12012
):disabled {
  border-color: #d8e2e9 !important;
  background: #edf2f5 !important;
  color: #91a1ae !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default !important;
}

#settingsCWorkspace.settingsC :is(
  #saveBrowserTabTitle11622,
  .peBrowserTitleHeaderSaveProxy12012
)[data-state="saved"]:disabled {
  border-color: #b9e4cd !important;
  background: #eaf8f0 !important;
  color: #16784b !important;
}

/* Galaxy Fold7 unfolded only: the 44px tablet touch override made Class Save
   extend well below its 34px title row. Keep its width, but align both vertical
   edges with the title/header footprint. */
html.pe87FoldWide[data-pe-fold-wide="true"][data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"])
#settingsCWorkspace.settingsC .adminClassCard > .adminClassCardHead {
  height: 34px !important;
  min-height: 34px !important;
}

html.pe87FoldWide[data-pe-fold-wide="true"][data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"])
#settingsCWorkspace.settingsC .adminClassCard > .adminClassCardHead > h2 {
  display: flex !important;
  align-items: center !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
}

html.pe87FoldWide[data-pe-fold-wide="true"][data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"])
#settingsCWorkspace.settingsC .adminClassCard #saveAdminClasses {
  top: 16px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
}

html.pe87FoldWide[data-pe-fold-wide="true"][data-pe87-fold-device^="galaxy-fold"]:not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"])
#settingsCWorkspace.settingsC .adminClassCard
> .adminClassCardHead + .adminToggleTitle {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  /* Compact phones keep the native listener-bearing button at the bottom of
     the expanded card, matching Header Copy Management. */
  html.peBrowserTitleMobileFooter12013[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622 > summary
  > .peBrowserTitleHeaderSaveProxy12012 {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.peBrowserTitleMobileFooter12013[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622 > summary {
    grid-template-columns: minmax(0, 1fr) 34px !important;
    gap: 10px !important;
  }

  html.peBrowserTitleMobileFooter12013[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622 > summary > i {
    grid-column: 2 !important;
  }

  html.peBrowserTitleMobileFooter12013[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622:not([open])
  > .peBrowserTitleMobileSaveSlot12013 {
    display: none !important;
  }

  html[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622[open]
  > .peBrowserTitleMobileSaveSlot12013 {
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 26px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 26px) !important;
    margin: 10px 13px 0 !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  html[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622
  > .peBrowserTitleMobileSaveSlot12013 > #saveBrowserTabTitle11622 {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #19a961 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #24c875 0%, #16ad60 100%) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 10px rgba(21, 169, 94, .15) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622
  > .peBrowserTitleMobileSaveSlot12013 > #saveBrowserTabTitle11622:disabled {
    border-color: #d8e2e9 !important;
    background: #edf2f5 !important;
    color: #91a1ae !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }

  html[data-pe-device="compact"][data-pe-tab="admin"]:not(.pe87FoldWide):not(.pe87Ipad):not(.pe87IpadRuntime):not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  #settingsCWorkspace.settingsC .adminBrowserTitleCard11622
  > .peBrowserTitleMobileSaveSlot12013 > #saveBrowserTabTitle11622[data-state="saved"]:disabled {
    border-color: #b9e4cd !important;
    background: #eaf8f0 !important;
    color: #16784b !important;
  }
}

