/* Visual asset picker modal — House Card identity (paper / pine / soft teal). */
.apick-back { position: fixed; inset: 0; background: rgba(20,30,32,.5); display: flex;
  align-items: flex-start; justify-content: center; z-index: 400; padding: 5vh 20px; overflow: auto; }
.apick-card { background: #fff; border-radius: 14px; width: min(880px,100%); max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 70px rgba(0,0,0,.32); overflow: hidden; }
.apick-card.dropping { outline: 2px dashed var(--brand, #4b828b); outline-offset: -8px; }

.apick-head { display: flex; gap: 8px; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--line2, #eef1ee); }
.apick-search { flex: 1; height: 34px; padding: 0 11px; border: 1px solid var(--line, #e4e7e4);
  border-radius: 8px; font-size: 13px; color: var(--ink, #1c211e); }
.apick-search:focus, .apick-client:focus { outline: none; border-color: var(--brand, #4b828b); }
.apick-client { height: 34px; padding: 0 8px; border: 1px solid var(--line, #e4e7e4);
  border-radius: 8px; font-size: 13px; background: #fff; max-width: 180px; }
.apick-x { width: 30px; height: 30px; border: 0; background: none; font-size: 22px; line-height: 1;
  color: #6b716a; cursor: pointer; border-radius: 6px; }
.apick-x:hover { background: #f2f4f2; color: var(--ink, #1c211e); }

.apick-status { padding: 14px 16px; font-size: 13px; color: var(--muted, #6b716a); }

.apick-grid { flex: 1; overflow: auto; display: grid; gap: 10px; padding: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-content: start; }
.apick-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px;
  border: 1px solid var(--line, #e4e7e4); border-radius: 10px; background: #fff; cursor: pointer;
  text-align: left; font: inherit; }
.apick-tile:hover { border-color: var(--brand, #4b828b); }
.apick-tile.on { border-color: var(--teal, #2e585c); box-shadow: 0 0 0 2px rgba(46,88,92,.18); }
.apick-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #f2f4f2; }
.apick-tile.broken img { visibility: hidden; }
.apick-tile.broken::before { content: 'preview unavailable'; position: absolute; top: 6px; left: 6px;
  right: 6px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: #f2f4f2; border-radius: 6px; color: #9aa19a; font-size: 11px; }
.apick-name { font-size: 12px; line-height: 1.35; color: #3a423d; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.apick-client-tag { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--brand, #4b828b); }

.apick-more { margin: 0 16px 12px; height: 32px; border: 1px solid var(--line, #e4e7e4);
  border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; color: #3a423d; }
.apick-more:hover { border-color: var(--brand, #4b828b); }

.apick-foot { display: flex; gap: 10px; align-items: center; padding: 12px 16px;
  border-top: 1px solid var(--line2, #eef1ee); background: #fbfcfb; }
.apick-grow { flex: 1; }
.apick-hint { font-size: 11.5px; color: var(--muted, #6b716a); }
.apick-file { display: none; }
.apick-btn { height: 34px; padding: 0 14px; border: 1px solid var(--line, #e4e7e4); border-radius: 8px;
  background: #fff; font-size: 13px; color: #3a423d; cursor: pointer; }
.apick-btn:hover:not(:disabled) { border-color: var(--brand, #4b828b); color: var(--teal, #2e585c); }
.apick-btn.primary { background: var(--teal, #2e585c); border-color: var(--teal, #2e585c); color: #fff; }
.apick-btn.primary:hover:not(:disabled) { background: var(--teal-d, #234548); color: #fff; }
.apick-btn:disabled { opacity: .45; cursor: default; }

@media (max-width: 560px) {
  .apick-head { flex-wrap: wrap; }
  .apick-client { max-width: none; flex: 1; }
  .apick-hint { display: none; }
}
