/* 弹层与账号人设设置；纸墨外观，焦点、权限和查看器行为保持。 */
.ws-card { max-width: 620px; max-height: 76vh; }
.ap-card { max-width: 460px; }
.ws-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: var(--bw) solid var(--line); }
.ws-path { flex: 1; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-path a { color: var(--text-2); text-decoration: none; cursor: pointer; }
.ws-path a:hover { color: var(--text); text-decoration: underline; }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.ws-list { overflow-y: auto; padding: 6px; }
.ws-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0;
  border-radius: var(--radius-sm); background: none; color: inherit; text-decoration: none; font-size: 14px;
  text-align: left; cursor: pointer;
}
.ws-row:hover { background: var(--surface-hover); }
.ws-row .ws-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-row .ws-size { color: var(--text-3); font-size: 12px; }
.ws-row .i { color: var(--text-3); }
.ws-empty { color: var(--text-3); font-size: 13px; text-align: center; padding: 26px; }
.usage-card { max-width: 460px; }
.usage-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.usage-row { display: flex; flex-direction: column; gap: 6px; }
.usage-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.usage-top .pct { color: var(--text-2); font-variant-numeric: tabular-nums; }
.usage-bar { height: 8px; border-radius: 999px; background: var(--control-bg); overflow: hidden; }
.usage-fill { height: 100%; border-radius: 999px; background: var(--interactive); transition: width .45s cubic-bezier(.22,1,.36,1); }
.usage-fill.warm { background: #f59e0b; }
.usage-fill.hot { background: #ef4444; }
.usage-reset { font-size: 11.5px; color: var(--text-3); }
.usage-note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.usage-loading { padding: 22px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.dlg-card { max-width: 400px; padding: 20px 20px 16px; }
.dlg-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.dlg-text { margin-top: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.dlg-input {
  width: 100%; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--border-control);
  border-radius: 10px; background: var(--control-bg); color: var(--text); font: inherit; font-size: 14px;
  outline: none;
}
.dlg-input:focus { border-color: var(--interactive-border); background: var(--surface); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ap-title { font-weight: 600; font-size: 14.5px; }
.ap-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.ap-row .ap-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.ap-row .seg { margin: 0; }
#viewer { position: fixed; inset: 0; background: rgba(10,10,12,.95); display: none; flex-direction: column; z-index: 40; }
#viewer.on { display: flex; animation: fadein .14s ease; }
#viewer.closing { animation: fadein .12s ease reverse forwards; }
.vbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: #e8e8e8; }
.vname { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.vcount { color: #9a9a9a; font-size: 12px; flex: 1; }
.vbtn {
  display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); background: rgba(255,255,255,.06);
  color: #e8e8e8; font-size: 12.5px; text-decoration: none; gap: 5px;
}
.vbtn:hover { background: rgba(255,255,255,.16); }
.vzoom { min-width: 44px; text-align: center; font-size: 12px; color: #b9b9b9; }
.vstage { flex: 1; position: relative; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; }
.vimg { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; transform-origin: center center; cursor: grab; }
.vimg.grabbing { cursor: grabbing; }
.vnav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: 0;
  border-radius: var(--radius-md); background: rgba(255,255,255,.08); color: #fff; font-size: 22px;
  line-height: 1;
}
.vnav:hover { background: rgba(255,255,255,.18); }
.vnav.prev { left: 14px; }
.vnav.next { right: 14px; }
.vmeta { padding: 8px 14px 14px; color: #8a8a8a; font-size: 12px; text-align: center; }
.icon-btn {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.icon-button {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text-2);
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.tool-btn {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.send {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.nav-item {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.suggests button {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
#loadolder {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.po-item {
  transition: background var(--motion-ui) ease, color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    filter var(--motion-ui) ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
.icon-button:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
.tool-btn:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
.nav-item:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
.suggests button:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
#loadolder:active { transform: scale(var(--press-scale)); transition-duration: var(--motion-press); }
.send.ready:active { transform: scale(.92); transition-duration: var(--motion-press); }
.modal.on { display: flex; animation: fadein 180ms ease; }
.modal.on .modal-card { animation: modal-in 220ms var(--ease-out); }
.modal.closing { animation: fadein 140ms ease reverse forwards; }
.modal.closing .modal-card { animation: modal-out 130ms var(--ease-in) forwards; }
.popover.on { animation: pop 160ms var(--ease-out); }
.ws-path button { border: 0; padding: 6px; background: none; color: var(--link); font: inherit; min-height: 36px; cursor: pointer; }
.modal-card {
  width: 100%; display: flex; flex-direction: column; background: var(--surface);
  border: var(--bw) solid var(--line); border-radius: var(--radius-large); box-shadow: var(--shadow-hard-lg);
  overflow: hidden; animation: pop .15s ease-out;
}
.modal {
  position: fixed; inset: 0; background: rgba(20,19,26,.42); backdrop-filter: blur(3px); display: none; align-items: center;
  justify-content: center; z-index: 35; padding: 20px; overscroll-behavior: contain;
}
#toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
#toasts .toast {
  background: var(--surface); color: var(--text); border: var(--bw) solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-hard);
  padding: 9px 14px; font-size: 13px; font-weight: 700; pointer-events: auto;
}
#toasts .toast.ok { border-color: var(--ok); }
#toasts .toast.err { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(4px) scale(.98); } }
@media (max-width: 640px) {
  .icon-button { min-height: 44px; min-width: 44px; }
  .ws-row { min-height: 44px; }
}
