/* Character art rules live in theme-v2.css (single source of truth).
   This file keeps the small dialogs that ship with the asset manager. */

/* ---------- asset manager ---------- */
.asset-manager { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.asset-manager article { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.asset-manager article img { width: 54px; height: 54px; object-fit: contain; display: inline-block; vertical-align: middle; }
.asset-manager article button { margin: 4px 4px 0 0; }
.asset-manager .asset-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

/* ---------- incoming call ---------- */
dialog.call-sheet {
  border: 0; padding: 0; overflow: hidden;
  width: min(460px, calc(100vw - 24px));
  border-radius: 32px; color: #fff;
  background: linear-gradient(170deg, #22314d, #3c4f78 62%, #584a7a);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
}
dialog.call-sheet::backdrop { background: rgba(12, 20, 32, .6); backdrop-filter: blur(8px); }
dialog.call-sheet[open] { display: flex; flex-direction: column; align-items: center; padding: 22px 22px 26px; gap: 8px; animation: sheet-in .3s var(--ease); }
.call-top { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 12.5px; color: rgba(255,255,255,.72); }
.call-top time { font-variant-numeric: tabular-nums; }
.call-sheet h2 { font-size: 21px; margin-top: 2px; }
.call-wave { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.call-wave i { width: 3px; border-radius: 3px; background: rgba(255,255,255,.55); animation: wave 1.1s var(--ease) infinite; }
.call-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.call-wave i:nth-child(2) { height: 16px; animation-delay: .1s; }
.call-wave i:nth-child(3) { height: 24px; animation-delay: .2s; }
.call-wave i:nth-child(4) { height: 12px; animation-delay: .3s; }
.call-wave i:nth-child(5) { height: 20px; animation-delay: .4s; }
.call-wave i:nth-child(6) { height: 10px; animation-delay: .5s; }
.call-wave i:nth-child(7) { height: 18px; animation-delay: .6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
#call-subtitles { min-height: 3.4em; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.88); text-align: center; white-space: pre-line; }
.call-controls { display: flex; gap: 8px; margin-top: 8px; width: 100%; }
.call-controls button {
  flex: 1; padding: 12px 8px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-weight: 600; transition: all var(--fast);
}
.call-controls button:hover { background: rgba(255,255,255,.24); }
.call-controls button.primary { background: #e2556c; border-color: transparent; }
.call-controls button.danger { border-color: rgba(255,214,140,.5); color: #ffd68c; }
