/* DB-V04-UI-FUNCTION-CLOSURE-23 P1: asset-card action normalization.
   Scoped to card actions only; inspector and toolbar buttons are unaffected. */
.asset-card .asset-card-creative-actions .find-similar,
.asset-card .asset-canvas-add {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #36445b !important;
  box-shadow: 0 2px 7px rgba(31, 38, 55, .10) !important;
  font: inherit;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.asset-card .asset-card-creative-actions .find-similar span {
  display: inline-block;
  margin: 0;
  font-size: 13px !important;
  line-height: 1;
  transform: none !important;
}
.asset-card .asset-card-creative-actions .find-similar:hover,
.asset-card .asset-canvas-add:hover {
  background: #f3f0ff !important;
  color: #4b4290 !important;
  box-shadow: 0 2px 7px rgba(82, 70, 150, .12) !important;
}
.asset-card .asset-card-creative-actions .find-similar:active,
.asset-card .asset-canvas-add:active {
  background: #e9e4ff !important;
  color: #3f367f !important;
  box-shadow: 0 1px 3px rgba(82, 70, 150, .12) !important;
  transform: scale(.98);
}
.asset-card .asset-card-creative-actions .find-similar:disabled,
.asset-card .asset-canvas-add:disabled {
  background: rgba(255, 255, 255, .62) !important;
  color: #8a8f9a !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none;
}
.asset-card .asset-canvas-select {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .84) !important;
  color: #465974 !important;
  box-shadow: 0 2px 7px rgba(31, 38, 55, .10) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1;
}
.asset-card .asset-canvas-select:hover {
  background: #f3f0ff !important;
  color: #4b4290 !important;
}
.asset-card .asset-canvas-select[aria-pressed="true"] {
  background: #6f63c8 !important;
  color: #fff !important;
  box-shadow: 0 2px 7px rgba(82, 70, 150, .18) !important;
}

/* P2 responsive containment: module-scoped, mirrors the approved library
   narrow-width rule. Does not alter HOME or the formal shell. */
@media (min-width:761px) and (max-width:900px){
  .app-shell.projects-section,
  .app-shell.inbox-section,
  .app-shell.workbench-section,
  .app-shell.answer-book-section{
    width:100vw!important;
    max-width:100vw!important;
    grid-template-columns:184px minmax(0,1fr)!important;
    overflow-x:hidden!important;
  }
  .projects-section .workspace,
  .inbox-section .workspace,
  .workbench-section .workspace,
  .answer-book-section .workspace{
    margin-left:0!important;
    width:auto!important;
    max-width:none!important;
  }
}
@media (max-width:900px){
  html.db-module-narrow,
  body.db-module-narrow{min-width:0!important;width:100%!important;overflow-x:hidden!important}
}
