/* Software Manager (mintinstall flavor) */
.swm { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--base-bg); }
.swm-scroll { flex: 1; overflow-y: auto; }

.swm-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 18px 4px;
}
.chip {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--entry-border);
  background: var(--button-bg);
  font-size: var(--fs-small);
  font-weight: 500;
}
.chip:hover { background: var(--button-hover); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.swm-banner {
  margin: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #2f7a44, #35a854 55%, #6fc98a);
  color: #fff;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.swm-banner .b-title { font-size: 19px; font-weight: 700; }
.swm-banner .b-sub { opacity: .92; font-size: var(--fs-small); margin-top: 3px; }
.swm-banner .mint-btn { border-color: transparent; }

.swm-list { padding: 4px 10px 18px; display: flex; flex-direction: column; gap: 8px; }
.app-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px;
  border-radius: var(--r-item);
  border: 1px solid var(--separator);
  background: var(--base-bg);
}
.app-row:hover { box-shadow: 0 1px 5px rgba(0,0,0,.09); }
.app-row .ar-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.app-row .ar-texts { flex: 1; min-width: 0; cursor: default; }
.app-row .ar-name { font-weight: 700; }
.app-row .ar-dev { color: var(--text-secondary); font-size: var(--fs-xsmall); margin-top: 1px; }
.app-row .ar-desc {
  color: var(--text-secondary); font-size: var(--fs-small);
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.app-row .ar-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 110px; }
.ar-progress { width: 110px; height: 7px; border-radius: 4px; background: var(--pressed-fill); overflow: hidden; }
.ar-progress > div { height: 100%; background: var(--accent); transition: width 200ms ease; }

/* detail view */
.swm-detail { padding: 20px 26px 30px; max-width: 720px; }
.sd-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.sd-head .sd-icon { width: 84px; height: 84px; }
.sd-meta { color: var(--text-secondary); font-size: var(--fs-small); margin-top: 3px; }
.sd-desc { line-height: 1.55; margin: 14px 0 18px; user-select: text; }
.sd-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.sd-shot { aspect-ratio: 16/10; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sd-info-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.sd-info-table td { padding: 7px 4px; border-bottom: 1px solid var(--separator); }
.sd-info-table td:first-child { color: var(--text-secondary); width: 38%; }
