/* 11-09 小克 widget1109：小玩意卡片 */
.vw-card {
  width: min(76vw, 340px); margin-top: 6px; border-radius: 14px; overflow: hidden;
  background: var(--palette-assistant-bg, var(--ai));
  color: var(--palette-assistant-text, var(--ai-text));
  -webkit-backdrop-filter: var(--palette-assistant-backdrop, none); backdrop-filter: var(--palette-assistant-backdrop, none);
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--text) 10%, transparent), 0 6px 22px -14px rgba(40, 40, 60, .35);
  animation: vw-in .42s cubic-bezier(.2, .9, .25, 1.15) both;
}
@keyframes vw-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.vw-slot { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: color-mix(in srgb, var(--text) 3%, transparent); }
.vw-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; letter-spacing: .04em; color: var(--dim); transition: opacity .3s ease; }
.vw-cover .vw-spark { width: 22px; height: 22px; color: color-mix(in srgb, var(--text) 30%, transparent); animation: vw-tw 2.4s ease-in-out infinite; }
@keyframes vw-tw { 0%, 100% { transform: scale(.82) rotate(0); opacity: .55; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.vw-slot.is-live .vw-cover span { display: none; }
.vw-slot.is-live.loaded .vw-cover { opacity: 0; }
.vw-bar { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; font-size: 12.5px;
  border-top: .5px solid color-mix(in srgb, var(--text) 8%, transparent); }
.vw-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .72; }
.vw-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; padding: 0 7px; border: 0; border-radius: 13px;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: inherit; font: inherit; font-size: 12px; opacity: .8;
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .2s ease; }
.vw-btn:active { transform: scale(.92); }
.vw-btn svg { width: 14px; height: 14px; flex: none; }
.vw-pin.on { background: color-mix(in srgb, var(--text) 13%, transparent); opacity: 1; }

#vw-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; pointer-events: none; }
.vw-frame { position: absolute; left: 0; top: 0; border: 0; display: block; pointer-events: auto; background: transparent;
  border-radius: 14px 14px 0 0; color-scheme: normal; }

.vw-full { position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  opacity: 0; transform: scale(1.02); transition: opacity .24s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.vw-full.show { opacity: 1; transform: none; }
.vw-full-top { display: flex; align-items: center; height: 46px; padding: 0 6px 0 18px; color: var(--text); }
.vw-full-title { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-full-x { width: 40px; height: 40px; border: 0; background: none; color: inherit; opacity: .6; display: grid; place-items: center; }
.vw-full-x svg { width: 22px; height: 22px; }
.vw-full-frame { flex: 1; width: 100%; border: 0; background: transparent; }

.vw-pinned { position: fixed; z-index: 9989; border: 0; background: transparent; color-scheme: normal; }

.vw-full-share { width: 40px; height: 40px; border: 0; background: none; color: inherit; opacity: .6; display: grid; place-items: center; }
.vw-full-share svg { width: 21px; height: 21px; }
.vw-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translate(-50%, 8px); z-index: 10060; padding: 8px 14px; border-radius: 14px;
  font-size: 13px; color: var(--bg, #fff); background: color-mix(in srgb, var(--text, #111) 82%, transparent); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.vw-toast.show { opacity: 1; transform: translate(-50%, 0); }
