/* HSWare 4.2 — Software/Blog directory polish loaded after the active template bundle. */

.hsware-software-directory .hsware-directory-hero {
  padding-top: 52px;
  padding-bottom: 42px;
}
.hsware-software-directory .hsware-directory-hero h1 { margin-bottom: 16px; }
.hsware-software-directory .hsware-directory-search { margin-top: 0; }

/* Category hierarchy: every parent is visible; children expand from the arrow. */
.hsware-software-directory .hsware-directory-sidebar {
  display: block;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 16px;
}
.hsware-software-directory .hsware-directory-sidebar > h2 { margin-bottom: 10px; }
.hsware-category-tree {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
}
.hsware-category-node { min-width: 0; }
.hsware-category-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hsware-software-directory .hsware-category-filter {
  flex: 1 1 auto;
  min-width: 0;
  margin: 2px 0;
  padding: 8px 8px;
  gap: 8px;
  border-radius: 9px;
  line-height: 1.2;
}
.hsware-category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hsware-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hsware-category-media {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
}
.hsware-category-media-image {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.hsware-software-directory .hsware-category-filter b {
  min-width: 24px;
  padding: 2px 5px;
  font-size: 10px;
  flex: 0 0 auto;
}
.hsware-category-toggle {
  appearance: none !important;
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--so-subtle) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.hsware-category-toggle:hover { background: var(--so-bg-subtle) !important; color: var(--so-strongest) !important; }
.hsware-category-toggle span {
  display: block;
  font-size: 17px;
  line-height: 1;
  transition: transform .16s ease;
  transform: rotate(0deg);
}
.hsware-category-toggle span svg { display:block; width:15px!important; height:15px!important; stroke:currentColor; }
.hsware-category-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.hsware-category-children {
  margin: 1px 0 3px 13px;
  padding-left: 9px;
  border-left: 1px solid var(--so-border);
}
.hsware-category-children[hidden] { display: none !important; }
.hsware-category-node.depth-1 .hsware-category-filter,
.hsware-category-node.depth-2 .hsware-category-filter,
.hsware-category-node.depth-3 .hsware-category-filter { font-size: 12.5px; font-weight: 600; }
.hsware-category-node.depth-1 .hsware-category-media,
.hsware-category-node.depth-2 .hsware-category-media,
.hsware-category-node.depth-3 .hsware-category-media { width: 22px; height: 22px; flex-basis: 22px; }

/* Software result grid. */
.hsware-software-directory .sb-software-grid,
.hsware-software-directory .sb-archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 15px !important;
  align-items: stretch;
}

/* APK Layout One compact directory card. */
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card {
  min-height: 0 !important;
  height: 100%;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-main {
  padding: 14px 14px 0;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-media {
  min-height: 62px;
  margin-bottom: 10px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-logo {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: 13px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-version {
  top: 2px;
  right: 0;
  max-width: calc(100% - 70px);
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card h3 {
  margin-bottom: 6px !important;
  font-size: 15px !important;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-meta {
  margin-bottom: 0;
  gap: 6px;
  font-size: 10px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-meta a {
  padding: 3px 7px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-publisher {
  margin-top: 9px;
  padding-top: 9px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-card-footer {
  margin-top: 10px;
  padding: 10px 14px;
}
body.softorbit-apk-layout-one .hsware-software-directory .apk1-software-card.hsware-compact-software-card .apk1-download {
  min-height: 30px;
  padding: 0 10px;
  font-size: 10px;
}

/* Pagination: paginate_links() returns plain links/spans, never a vertically styled UL. */
.hsware-directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.hsware-directory-pagination > a.page-numbers,
.hsware-directory-pagination > span.page-numbers {
  display: inline-flex !important;
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  align-items: center;
  justify-content: center;
  padding: 0 9px !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 8px !important;
  background: var(--so-white) !important;
  color: var(--so-medium) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.hsware-directory-pagination > span.page-numbers.current,
.hsware-directory-pagination > a.page-numbers:hover {
  border-color: var(--so-accent) !important;
  background: var(--so-accent) !important;
  color: var(--so-on-accent) !important;
}
.hsware-directory-pagination > span.page-numbers.dots {
  min-width: 20px !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 1180px) {
  .hsware-software-directory .sb-software-grid,
  .hsware-software-directory .sb-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 980px) {
  .hsware-software-directory .hsware-directory-sidebar {
    position: static;
    max-height: none;
  }
  .hsware-category-tree { max-height: 430px; }
}
@media (max-width: 700px) {
  .hsware-software-directory .sb-software-grid,
  .hsware-software-directory .sb-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 470px) {
  .hsware-software-directory .sb-software-grid,
  .hsware-software-directory .sb-archive-grid { grid-template-columns: 1fr !important; }
  .hsware-directory-pagination > a.page-numbers,
  .hsware-directory-pagination > span.page-numbers { min-width: 32px !important; height: 32px !important; padding: 0 7px !important; }
}


/* --------------------------------------------------------------------------
 * HSWare 4.5 — APK Layout One Software directory refinement.
 * These rules belong to APK Layout One only.
 * -------------------------------------------------------------------------- */
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-hero {
  padding-top: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--apk1-line);
  background: var(--apk1-white);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-hero .sb-kicker {
  border-color: var(--apk1-blue-border);
  background: var(--apk1-blue-soft);
  color: var(--apk1-blue-hover);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-hero .sb-kicker svg { color: var(--apk1-blue); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search {
  display: flex;
  max-width: 640px;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 6px 6px 6px 17px;
  border: 1px solid var(--apk1-line-strong);
  border-radius: 999px;
  background: var(--apk1-white);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--apk1-deep) 8%, transparent);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search:focus-within {
  border-color: var(--apk1-blue);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--apk1-deep) 7%, transparent), 0 0 0 3px color-mix(in srgb, var(--apk1-blue) 9%, transparent);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search .sb-search-icon {
  padding-left: 0;
  color: var(--apk1-steel);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search input { color: var(--apk1-ink); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search input::placeholder { color: var(--apk1-placeholder); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search button {
  min-height: 42px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  background: var(--so-accent);
  color: var(--so-on-accent);
  box-shadow: none;
  font-weight: 750;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search button:hover { background: var(--so-accent-alt); }

body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-results { background: var(--apk1-surface); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout {
  grid-template-columns: minmax(270px, 305px) minmax(0, 1fr);
  gap: 34px;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
  display: block !important;
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--apk1-line);
  border-radius: 20px;
  background: var(--apk1-white);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--apk1-deep) 6%, transparent);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar > h2 {
  margin: 0 0 12px;
  padding: 0 2px;
  color: var(--apk1-deep);
  font-size: 18px;
  line-height: 1.25;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-tree {
  max-height: calc(100vh - 158px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 3px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--apk1-line-strong) transparent;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 2px 0;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-row.no-children { grid-template-columns: minmax(0, 1fr); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--apk1-slate);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--apk1-line);
  background: var(--apk1-base-soft);
  color: var(--apk1-deep);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter.is-active {
  border-color: var(--apk1-blue-border);
  background: var(--apk1-blue-soft);
  color: var(--apk1-blue-hover);
  box-shadow: inset 3px 0 0 var(--apk1-blue);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-all {
  min-height: 42px;
  margin-bottom: 7px;
  font-weight: 750;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-label { gap: 9px; }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-media {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 7px;
  background: var(--apk1-base-soft);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter b {
  display: inline-flex;
  min-width: 25px;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--apk1-surface);
  color: var(--apk1-steel);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter.is-active b {
  background: color-mix(in srgb, var(--apk1-blue) 12%, var(--apk1-white));
  color: var(--apk1-blue-hover);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle {
  appearance: none !important;
  display: grid !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--apk1-steel) !important;
  box-shadow: none !important;
  line-height: 0 !important;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle:hover,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle:focus-visible {
  border-color: var(--apk1-line) !important;
  background: var(--apk1-base-soft) !important;
  color: var(--apk1-blue) !important;
  outline: none;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle[aria-expanded="true"] {
  border-color: var(--apk1-blue-border) !important;
  background: var(--apk1-blue-soft) !important;
  color: var(--apk1-blue) !important;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle svg {
  display: block;
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle[aria-expanded="true"] > span { transform: rotate(90deg); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-children {
  margin: 3px 0 5px 15px;
  padding: 1px 0 1px 11px;
  border-left: 1px solid var(--apk1-line);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-node.depth-1 .hsware-category-filter,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-node.depth-2 .hsware-category-filter,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-node.depth-3 .hsware-category-filter {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-heading span { color: var(--apk1-steel); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-heading h2 { color: var(--apk1-deep); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-heading > a { color: var(--apk1-blue); }
body.softorbit-apk-layout-one .hsware-software-directory .sb-empty {
  border-color: var(--apk1-line-strong);
  background: var(--apk1-white);
  color: var(--apk1-slate);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-pagination > a.page-numbers,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-pagination > span.page-numbers {
  border-color: var(--apk1-line) !important;
  background: var(--apk1-white) !important;
  color: var(--apk1-slate) !important;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-pagination > span.page-numbers.current,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-pagination > a.page-numbers:hover {
  border-color: var(--apk1-ink) !important;
  background: var(--apk1-ink) !important;
  color: var(--apk1-white) !important;
}

@media (max-width: 980px) {
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout { grid-template-columns: 1fr; gap: 24px; }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
    position: static;
    display: block !important;
    max-height: none;
  }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-tree {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
@media (max-width: 560px) {
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 9px 11px;
    border-radius: 18px;
  }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar { padding: 14px; border-radius: 16px; }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-row { grid-template-columns: minmax(0,1fr) 30px; }
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle {
    width:30px!important;min-width:30px!important;max-width:30px!important;
    height:30px!important;min-height:30px!important;max-height:30px!important;
  }
}

/* --------------------------------------------------------------------------
 * HSWare 4.8 — complete category hierarchy and sidebar alignment.
 * -------------------------------------------------------------------------- */
.hsware-software-directory .hsware-directory-layout {
  grid-template-columns: minmax(300px, 330px) minmax(0, 1fr);
  gap: 32px;
}
.hsware-software-directory .hsware-directory-sidebar {
  padding: 20px;
  border: 1px solid var(--so-border);
  border-radius: 20px;
  background: var(--so-white);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--so-strongest) 6%, transparent);
}
.hsware-software-directory .hsware-directory-sidebar > h2 {
  margin: 0 0 14px;
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--so-border);
  font-size: 20px;
  line-height: 1.2;
}
.hsware-software-directory .hsware-category-tree { padding: 4px 6px 4px 0; }
.hsware-software-directory .hsware-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}
.hsware-software-directory .hsware-category-row.no-children { grid-template-columns: minmax(0, 1fr); }
.hsware-software-directory .hsware-category-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.35;
}
.hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--so-border);
  background: var(--so-bg-lighter);
}
.hsware-software-directory .hsware-category-filter.is-active {
  border-color: color-mix(in srgb, var(--so-accent) 30%, var(--so-border));
  background: color-mix(in srgb, var(--so-accent) 8%, var(--so-white));
}
.hsware-software-directory .hsware-category-label { align-items: center; gap: 9px; }
.hsware-software-directory .hsware-category-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.hsware-software-directory .hsware-category-media {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 3px;
  border: 1px solid var(--so-border);
  border-radius: 8px;
  background: var(--so-bg-lighter);
}
.hsware-software-directory .hsware-category-media-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
}
.hsware-software-directory .hsware-category-filter b {
  display: inline-flex;
  min-width: 26px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  line-height: 1;
}
.hsware-software-directory .hsware-category-toggle {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 10px !important;
  background: var(--so-bg-lighter) !important;
  line-height: 0 !important;
}
.hsware-software-directory .hsware-category-toggle > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
}
.hsware-software-directory .hsware-category-children {
  margin: 5px 0 8px 18px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid color-mix(in srgb, var(--so-accent) 24%, var(--so-border));
}
.hsware-software-directory .hsware-category-node.depth-1 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-2 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-3 .hsware-category-filter {
  min-height: 40px;
  padding: 7px 8px;
  font-size: 12.5px;
}
.hsware-category-directory-results { background: var(--so-bg-lighter); }

/* APK Layout One keeps its own blue, sharper directory language. */
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout {
  grid-template-columns: minmax(310px, 340px) minmax(0, 1fr);
  gap: 36px;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--apk1-deep) 8%, transparent);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter { min-height: 44px; padding: 8px 10px; border-radius: 12px; }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-name { white-space: normal; overflow: visible; text-overflow: clip; }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-color: var(--apk1-line) !important;
  background: var(--apk1-base-soft) !important;
}
body.softorbit-apk-layout-one .hsware-category-directory-results { background: var(--apk1-surface); }
@media (max-width: 980px) {
  .hsware-software-directory .hsware-directory-layout,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout { grid-template-columns: 1fr; gap: 24px; }
  .hsware-software-directory .hsware-directory-sidebar { position: static; max-height: none; }
  .hsware-software-directory .hsware-category-tree { max-height: 520px; }
}
@media (max-width: 480px) {
  .hsware-software-directory .hsware-directory-sidebar { padding: 14px; border-radius: 16px; }
}

/* --------------------------------------------------------------------------
 * HSWare 4.9 — compact category sections with individual information cards.
 * -------------------------------------------------------------------------- */
.hsware-category-directory-sections {
  display: grid;
  gap: 34px;
}
.hsware-category-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--so-border);
  border-radius: 24px;
  background: var(--so-white);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--so-strongest) 6%, transparent);
}
.hsware-category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--so-border);
  background: var(--so-white);
}
.hsware-category-main-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}
.hsware-category-main-identity > div { min-width: 0; }
.hsware-category-main-icon,
.hsware-category-tile-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--so-border);
  background: var(--so-bg-lighter);
}
.hsware-category-main-icon {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 16px;
}
.hsware-category-main-icon img,
.hsware-category-tile-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}
.hsware-category-main-label,
.hsware-category-tile-level {
  display: block;
  color: var(--so-subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hsware-category-main-identity h2 {
  margin: 4px 0 5px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}
.hsware-category-main-identity h2 a {
  color: var(--so-strongest);
  text-decoration: none;
}
.hsware-category-main-identity p {
  max-width: 720px;
  margin: 0;
  color: var(--so-medium);
  font-size: 12.5px;
  line-height: 1.6;
}
.hsware-category-main-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.hsware-category-main-actions > b,
.hsware-category-tile-stats > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--so-accent) 9%, var(--so-white));
  color: var(--so-accent-alt);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.hsware-category-main-actions > b { min-height: 30px; padding: 7px 10px; }
.hsware-category-main-actions > a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--so-border);
  border-radius: 10px;
  color: var(--so-strongest);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-category-main-actions > a:hover {
  border-color: color-mix(in srgb, var(--so-accent) 35%, var(--so-border));
  background: var(--so-bg-lighter);
  color: var(--so-accent-alt);
}
.hsware-category-main-actions svg { width: 14px; height: 14px; }
.hsware-category-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  background: var(--so-bg-lighter);
}
.hsware-category-tile {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--so-border);
  border-radius: 17px;
  background: var(--so-white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--so-strongest) 3%, transparent);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hsware-category-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--so-accent) 28%, var(--so-border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--so-strongest) 7%, transparent);
}
.hsware-category-tile-top {
  display: flex;
  min-height: 46px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.hsware-category-tile.no-category-media .hsware-category-tile-top {
  justify-content: flex-end;
}
.hsware-category-tile-icon {
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 12px;
}
.hsware-category-tile-level {
  max-width: 65%;
  padding-top: 3px;
  overflow-wrap: anywhere;
  text-align: right;
}
.hsware-category-tile.no-category-media .hsware-category-tile-level {
  max-width: 100%;
  text-align: right;
}
.hsware-category-tile h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.35;
}
.hsware-category-tile h3 a {
  color: var(--so-strongest);
  text-decoration: none;
}
.hsware-category-tile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}
.hsware-category-tile-stats > b { min-height: 24px; padding: 5px 8px; }
.hsware-category-tile-stats > span {
  color: var(--so-subtle);
  font-size: 9.5px;
  font-weight: 700;
}
.hsware-category-tile > p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--so-medium);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.hsware-category-tile-view {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--so-border);
  color: var(--so-strongest);
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-category-tile-view:hover { color: var(--so-accent-alt); }
.hsware-category-tile-view svg { width: 14px; height: 14px; }
.hsware-category-section-empty {
  padding: 24px 26px;
  background: var(--so-bg-lighter);
  color: var(--so-subtle);
  font-size: 12px;
}

/* APK Layout One keeps its sharper blue visual identity. */
body.softorbit-apk-layout-one .hsware-category-section {
  border-color: var(--apk1-line);
  border-radius: 26px;
  box-shadow: 0 14px 38px color-mix(in srgb, var(--apk1-deep) 7%, transparent);
}
body.softorbit-apk-layout-one .hsware-category-section-head { border-color: var(--apk1-line); }
body.softorbit-apk-layout-one .hsware-category-main-icon,
body.softorbit-apk-layout-one .hsware-category-tile-icon {
  border-color: var(--apk1-line);
  background: var(--apk1-base-soft);
}
body.softorbit-apk-layout-one .hsware-category-main-identity h2 a,
body.softorbit-apk-layout-one .hsware-category-tile h3 a { color: var(--apk1-deep); }
body.softorbit-apk-layout-one .hsware-category-main-actions > b,
body.softorbit-apk-layout-one .hsware-category-tile-stats > b {
  background: var(--apk1-blue-soft);
  color: var(--apk1-blue-hover);
}
body.softorbit-apk-layout-one .hsware-category-main-actions > a { border-color: var(--apk1-line); color: var(--apk1-deep); }
body.softorbit-apk-layout-one .hsware-category-main-actions > a:hover,
body.softorbit-apk-layout-one .hsware-category-tile-view:hover { color: var(--apk1-blue-hover); }
body.softorbit-apk-layout-one .hsware-category-tile-grid { background: var(--apk1-surface); }
body.softorbit-apk-layout-one .hsware-category-tile { border-color: var(--apk1-line); border-radius: 18px; }
body.softorbit-apk-layout-one .hsware-category-tile:hover {
  border-color: color-mix(in srgb, var(--apk1-blue) 28%, var(--apk1-line));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--apk1-deep) 8%, transparent);
}

@media (max-width: 1180px) {
  .hsware-category-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hsware-category-section-head { align-items: flex-start; flex-direction: column; }
  .hsware-category-main-actions { width: 100%; justify-content: space-between; }
  .hsware-category-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .hsware-category-directory-sections { gap: 24px; }
  .hsware-category-section { border-radius: 18px; }
  .hsware-category-section-head { padding: 19px 17px; }
  .hsware-category-main-identity { align-items: flex-start; gap: 12px; }
  .hsware-category-main-icon { width: 48px; height: 48px; border-radius: 13px; }
  .hsware-category-main-actions { align-items: stretch; flex-direction: column; }
  .hsware-category-main-actions > a { justify-content: space-between; }
  .hsware-category-tile-grid { grid-template-columns: 1fr; padding: 14px; }
  .hsware-category-tile { min-height: 200px; }
}

/* --------------------------------------------------------------------------
 * HSWare V5.1 — complete Software directory and category explorer.
 * These final rules intentionally supersede the earlier sidebar experiments.
 * -------------------------------------------------------------------------- */
.hsware-software-directory .hsware-directory-results {
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--so-accent) 7%, transparent), transparent 25rem),
    var(--so-bg-lighter);
}
.hsware-software-directory .hsware-directory-results > .sb-container {
  width: min(1440px, calc(100% - 40px));
  max-width: none;
}
.hsware-software-directory .hsware-directory-layout.has-sidebar,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout.has-sidebar {
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}
.hsware-software-directory .hsware-directory-main { min-width: 0; }

.hsware-software-directory .hsware-directory-sidebar,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
  position: sticky;
  top: 24px;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 292px !important;
  max-height: calc(100vh - 48px);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--so-border);
  border-radius: 22px;
  background: var(--so-white);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--so-strongest) 8%, transparent);
}
.hsware-software-directory .hsware-directory-sidebar::before {
  display: none !important;
  width: 0;
  height: 0;
  background: none;
  content: none !important;
}
.hsware-sidebar-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 10px;
}
.hsware-sidebar-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--so-accent-alt);
  background: var(--so-accent-soft);
  border: 1px solid var(--so-accent-border);
}
.hsware-sidebar-heading-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}
.hsware-sidebar-heading-icon svg { width: 20px; height: 20px; }
.hsware-sidebar-heading > div { min-width: 0; }
.hsware-sidebar-heading > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--so-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hsware-software-directory .hsware-sidebar-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--so-strongest);
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.hsware-sidebar-heading > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--so-border);
  border-radius: 10px;
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.hsware-sidebar-heading > a:hover {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  color: var(--so-accent-alt);
}
.hsware-sidebar-heading > a svg { width: 15px; height: 15px; }
.hsware-sidebar-intro {
  margin: 0;
  padding: 0 18px 15px;
  color: var(--so-medium);
  font-size: 11px;
  line-height: 1.55;
}

.hsware-software-directory .hsware-category-all,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-all {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  margin: 0 14px 12px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}
.hsware-software-directory .hsware-category-all .hsware-category-label {
  display: block;
  min-width: 0;
}
.hsware-software-directory .hsware-category-all .hsware-category-name {
  display: block;
  color: var(--so-strongest);
  font-size: 12.5px;
  font-weight: 800;
}
.hsware-software-directory .hsware-category-all .hsware-category-label small {
  display: none;
}
.hsware-software-directory .hsware-category-all > b {
  min-width: 34px;
  min-height: 25px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--so-white);
  color: var(--so-accent-alt);
  font-size: 10px;
}
.hsware-software-directory .hsware-category-all.is-active {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  box-shadow: inset 3px 0 0 var(--so-accent);
}
.hsware-software-directory .hsware-category-all.is-active .hsware-category-name { color: var(--so-accent-alt); }
.hsware-software-directory .hsware-category-all.is-active > b {
  background: var(--so-bg-lighter);
  color: var(--so-accent-alt);
}

.hsware-category-tree-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px;
  padding: 12px 3px 8px;
  border-top: 1px solid var(--so-border);
  color: var(--so-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hsware-category-tree-title b {
  display: inline-grid;
  min-width: 23px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--so-bg-subtle);
  color: var(--so-medium);
  font-size: 9px;
  letter-spacing: 0;
}
.hsware-software-directory .hsware-category-tree,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-tree {
  max-height: calc(100vh - 360px);
  min-height: 100px;
  margin: 0;
  padding: 0 9px 8px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--so-border-strong) transparent;
  scrollbar-width: thin;
}
.hsware-software-directory .hsware-category-tree::-webkit-scrollbar { width: 6px; }
.hsware-software-directory .hsware-category-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--so-border-strong);
}
.hsware-software-directory .hsware-category-row,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 4px 0;
}
.hsware-software-directory .hsware-category-row.no-children,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-row.no-children {
  grid-template-columns: minmax(0, 1fr);
}
.hsware-software-directory .hsware-category-filter,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 43px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--so-medium);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: none;
}
.hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--so-border);
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
}
.hsware-software-directory .hsware-category-filter.is-active:not(.hsware-category-all) {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  color: var(--so-accent-alt);
  box-shadow: inset 3px 0 0 var(--so-accent);
}
.hsware-software-directory .hsware-category-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.hsware-software-directory .hsware-category-name {
  display: block;
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.hsware-software-directory .hsware-category-media {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--so-border);
  border-radius: 8px;
  background: var(--so-white);
}
.hsware-software-directory .hsware-category-filter > b {
  display: inline-grid;
  min-width: 27px;
  min-height: 22px;
  place-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--so-bg-subtle);
  color: var(--so-subtle);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}
.hsware-software-directory .hsware-category-toggle,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle {
  appearance: none !important;
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 10px !important;
  background: var(--so-white) !important;
  color: var(--so-subtle) !important;
  box-shadow: none !important;
  line-height: 0 !important;
}
.hsware-software-directory .hsware-category-toggle:hover,
.hsware-software-directory .hsware-category-toggle:focus-visible,
.hsware-software-directory .hsware-category-toggle[aria-expanded="true"] {
  border-color: var(--so-accent-border) !important;
  background: var(--so-accent-soft) !important;
  color: var(--so-accent-alt) !important;
  outline: none;
}
.hsware-software-directory .hsware-category-toggle > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.hsware-software-directory .hsware-category-toggle[aria-expanded="true"] > span { transform: rotate(90deg); }
.hsware-software-directory .hsware-category-toggle svg {
  display: block;
  width: 15px !important;
  height: 15px !important;
}
.hsware-software-directory .hsware-category-children,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-children {
  margin: 5px 0 8px 17px;
  padding: 2px 0 2px 11px;
  border-left: 2px solid var(--so-accent-border);
}
.hsware-software-directory .hsware-category-node.depth-1 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-2 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-3 .hsware-category-filter {
  min-height: 39px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 650;
}
.hsware-sidebar-directory-link {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--so-border);
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-sidebar-directory-link:hover { color: var(--so-accent-alt); }
.hsware-sidebar-directory-link svg { width: 14px; height: 14px; }

.hsware-directory-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}
.hsware-directory-page-size {
  display: inline-flex !important;
  min-height: 30px;
  align-items: center;
  margin: 0 !important;
  padding: 6px 10px;
  border: 1px solid var(--so-border);
  border-radius: 999px;
  background: var(--so-white);
  color: var(--so-medium) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
}
.hsware-directory-heading-actions > a {
  color: var(--so-accent-alt);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-software-directory .hsware-directory-pagination {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--so-border);
}
.hsware-software-directory .hsware-directory-pagination > a.page-numbers,
.hsware-software-directory .hsware-directory-pagination > span.page-numbers {
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

/* APK Layout One keeps a restrained cream/brown/orange identity. */
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-results {
  background: var(--apk1-surface);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
  border-color: var(--apk1-line);
  border-radius: 24px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--apk1-deep) 10%, transparent);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar::before {
  display: none !important;
  background: none;
  content: none !important;
}
body.softorbit-apk-layout-one .hsware-sidebar-heading-icon {
  border-color: var(--apk1-blue-border);
  background: var(--apk1-blue-soft);
  color: var(--apk1-blue);
}
body.softorbit-apk-layout-one .hsware-sidebar-heading > a {
  border-color: var(--apk1-line);
  background: var(--apk1-yellow-soft);
  color: var(--apk1-deep);
}
body.softorbit-apk-layout-one .hsware-sidebar-heading > a:hover { border-color: var(--apk1-yellow); background: var(--apk1-yellow); }
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-all.is-active {
  border-color: var(--apk1-blue-border);
  background: var(--apk1-blue-soft);
  box-shadow: inset 3px 0 0 var(--apk1-blue);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-all.is-active > b {
  background: var(--apk1-white);
  color: var(--apk1-blue-hover);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--apk1-line);
  background: var(--apk1-base-soft);
  color: var(--apk1-deep);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-filter.is-active:not(.hsware-category-all) {
  border-color: var(--apk1-blue-border);
  background: var(--apk1-blue-soft);
  color: var(--apk1-blue-hover);
  box-shadow: inset 3px 0 0 var(--apk1-blue);
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle:hover,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle:focus-visible,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-toggle[aria-expanded="true"] {
  border-color: var(--apk1-blue-border) !important;
  background: var(--apk1-blue-soft) !important;
  color: var(--apk1-blue) !important;
}
body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-children { border-left-color: var(--apk1-blue-border); }
body.softorbit-apk-layout-one .hsware-sidebar-directory-link {
  border-color: var(--apk1-line);
  background: var(--apk1-base-soft);
  color: var(--apk1-deep);
}
body.softorbit-apk-layout-one .hsware-sidebar-directory-link:hover { color: var(--apk1-blue-hover); }
body.softorbit-apk-layout-one .hsware-directory-page-size { border-color: var(--apk1-line); background: var(--apk1-white); }
body.softorbit-apk-layout-one .hsware-directory-heading-actions > a { color: var(--apk1-blue-hover); }

@media (max-width: 1120px) {
  .hsware-software-directory .hsware-directory-layout.has-sidebar,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-layout.has-sidebar {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hsware-software-directory .hsware-directory-sidebar,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar {
    position: static;
    width: 100% !important;
    max-width: none !important;
    max-height: none;
  }
  .hsware-software-directory .hsware-category-tree,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-tree {
    max-height: 440px;
  }
}
@media (max-width: 700px) {
  .hsware-software-directory .hsware-directory-results > .sb-container { width: min(100% - 24px, 1440px); }
  .hsware-directory-heading { align-items: flex-start; }
  .hsware-directory-heading-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .hsware-software-directory .hsware-directory-sidebar,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-sidebar { border-radius: 17px; }
  .hsware-sidebar-heading { grid-template-columns: 38px minmax(0, 1fr) 32px; padding: 15px 14px 9px; }
  .hsware-sidebar-heading-icon { width: 38px; height: 38px; }
  .hsware-sidebar-heading > a { width: 32px; height: 32px; }
  .hsware-sidebar-intro { padding: 0 14px 13px; }
  .hsware-software-directory .hsware-category-all,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-all { margin: 0 11px 12px; }
  .hsware-category-tree-title { margin-inline: 11px; }
  .hsware-software-directory .hsware-category-tree,
  body.softorbit-apk-layout-one .hsware-software-directory .hsware-category-tree { max-height: none; padding-inline: 9px; }
  .hsware-sidebar-directory-link { padding-inline: 14px; }
}


/* HSWare 5.1.3 — APK Layout One dark directory buttons use foreground-colored icons. */
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search button svg,
body.softorbit-apk-layout-one .hsware-software-directory .hsware-directory-search button svg * {
  color: var(--so-on-accent) !important;
  stroke: currentColor !important;
}
