/* DeskMate 设计系统 — components. Load after tokens.css. Every class is prefixed wa-. */
:root {
  --dur-1: 90ms;   /* hover colour, press */
  --dur-2: 160ms;  /* tooltip, popover, icon swap */
  --dur-3: 220ms;  /* message enter, menu, dialog */
  --dur-4: 300ms;  /* right panel, sidebar, layout shifts */
  --dur-5: 420ms;  /* window open, scene change */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

.wa-root { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 14px; line-height: 22px; }
.wa-root *, .wa-root *::before, .wa-root *::after { box-sizing: border-box; }
.wa-root :where(button) { font: inherit; color: inherit; margin: 0; }
.wa-root :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-num { font-variant-numeric: tabular-nums; }

/* icons: 16 px stroke icons, 1.5 stroke */
.wa-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.wa-ico--14 { width: 14px; height: 14px; }
.wa-ico--18 { width: 18px; height: 18px; }
.wa-ico--20 { width: 20px; height: 20px; }
.wa-ico--fill { fill: currentColor; stroke: none; }

/* ---------- Button ---------- */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--size-control); padding: 0 14px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none; text-decoration: none;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear, color var(--dur-1) linear, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.wa-btn:active { transform: scale(0.98); }
.wa-btn--primary { background: var(--strong); color: var(--on-accent); font-weight: 600; }
.wa-btn--primary:hover { background: var(--strong-hover); }
.wa-btn--primary:active { background: var(--strong-press); }
.wa-btn--brand { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.wa-btn--brand:hover { background: var(--accent-hover); }
.wa-btn--brand:active { background: var(--accent-press); }
.wa-btn--success { background: var(--success); color: var(--on-accent); font-weight: 600; }
.wa-btn--success:hover { background: color-mix(in srgb, var(--success) 86%, #000); }
.wa-btn--success:active { background: color-mix(in srgb, var(--success) 74%, #000); }
.wa-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.wa-btn--secondary:hover { background: var(--fill-hover-surface); border-color: var(--line-control); }
.wa-btn--ghost { background: transparent; color: var(--ink-2); }
.wa-btn--ghost:hover { background: var(--fill-hover); color: var(--ink); }
.wa-btn--danger { background: var(--danger); color: var(--on-accent); font-weight: 600; }
.wa-btn--danger:hover { filter: brightness(0.92); }
.wa-btn--sm { height: var(--size-control-sm); padding: 0 10px; border-radius: var(--radius-sm); }
.wa-btn--lg { height: var(--size-control-lg); width: 100%; font-size: 14px; border-radius: var(--radius-md); }
.wa-btn--link { height: auto; padding: 0; background: none; color: var(--accent); font-weight: 400; font-size: 12px; line-height: 18px; }
.wa-btn--link:hover { text-decoration: underline; text-underline-offset: 2px; }
.wa-btn:disabled, .wa-btn.is-disabled { background: var(--fill-disabled); color: var(--ink-disabled); border-color: transparent; cursor: default; transform: none; }
.wa-btn.is-loading { pointer-events: none; }
.wa-btn .wa-spin { width: 14px; height: 14px; border-color: rgba(255, 255, 255, 0.35); border-top-color: var(--on-accent); }

/* ---------- Icon button + tooltip ---------- */
.wa-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--size-control); height: var(--size-control); flex: none; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear, transform var(--dur-1) var(--ease-out); }
.wa-iconbtn:hover { background: var(--fill-hover); color: var(--ink); }
.wa-iconbtn:active { transform: scale(0.94); }
.wa-iconbtn--sm { width: var(--size-control-sm); height: var(--size-control-sm); }
.wa-iconbtn--xs { width: 22px; height: 22px; border-radius: var(--radius-xs); }
.wa-iconbtn.is-on { color: var(--accent); }
.wa-iconbtn.is-on:hover { color: var(--accent-hover); }
.wa-tip { position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, -2px); padding: 3px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-accent); font-size: 12px; line-height: 18px; font-weight: 400; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 30;
  transition: opacity var(--dur-2) linear, transform var(--dur-2) var(--ease-out); transition-delay: 0ms; }
.wa-tip--up { top: auto; bottom: calc(100% + 6px); transform: translate(-50%, 2px); }
.wa-iconbtn:hover .wa-tip, .wa-btn:hover .wa-tip, .wa-hastip:hover .wa-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: 450ms; }
.wa-tip.is-shown { opacity: 1; transform: translate(-50%, 0); transition-delay: 0ms; }

/* ---------- Tag, kbd, avatar, mark ---------- */
.wa-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--surface-sunken); color: var(--ink-2); font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.wa-tag--accent { background: var(--accent-soft); color: var(--accent-ink); }
.wa-tag--danger { background: var(--danger-soft); color: var(--danger-ink); }
.wa-kbd { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: var(--radius-xs); border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 16px; font-weight: 500; font-family: var(--font-sans); }
.wa-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
/* Live mark: the sidebar mark follows the conversation. One face group is shown per state. */
.wa-side-mark { position: relative; display: inline-flex; flex: none; }
.wa-zz--side { left: 27px; top: -3px; }
/* At 24 px the same moves read as half as large, so the sidebar mark moves twice as far. */
.wa-markwrap { position: relative; display: inline-flex; flex: none; animation: wa-pop var(--dur-4) var(--ease-spring) both; }
.wa-mark-badge { position: absolute; right: -6px; bottom: -6px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--warning); color: var(--on-accent); box-shadow: 0 0 0 3px var(--surface); font-size: 13px; line-height: 1; font-weight: 700; font-family: var(--font-sans); animation: wa-pop var(--dur-3) var(--ease-spring) 180ms both; }
.wa-mark-badge--danger { background: var(--danger); }
.wa-mark svg { display: block; width: 100%; height: 100%; }
.wa-mark { display: inline-flex; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--mark, var(--accent)); overflow: hidden; }
.wa-mark--lg { width: 56px; height: 56px; border-radius: 15px; }
.wa-mark--sm { width: 24px; height: 24px; border-radius: 6px; }
.wa-mark--xs { width: 18px; height: 18px; border-radius: 5px; }
.wa-mark.is-still svg, .wa-mark.is-still svg * { animation: none !important; }
.wa-wordmark { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; color: var(--ink); }
.wa-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: var(--radius-full); }

/* ---------- Spinner, progress, skeleton ---------- */
.wa-spin { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: var(--radius-full); border: 1.5px solid var(--line); border-top-color: var(--accent); animation: wa-spin 0.8s linear infinite; }
.wa-spin--lg { width: 22px; height: 22px; border-width: 2px; }
.wa-progress { position: relative; width: 100%; height: 4px; border-radius: var(--radius-full); background: var(--fill-hover); overflow: hidden; }
.wa-progress-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-full); background: var(--accent); transition: width var(--dur-4) linear; }
.wa-progress.is-indeterminate .wa-progress-bar { width: 32%; animation: wa-indet 1.5s var(--ease-inout) infinite; }
.wa-skel { height: 10px; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--fill-hover-surface) 0%, var(--fill-hover) 50%, var(--fill-hover-surface) 100%); background-size: 200% 100%; animation: wa-sheen 1.4s linear infinite; }

/* ---------- Window frame ---------- */
.wa-desktop { position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg-desktop); overflow: hidden; }
.wa-window { position: relative; display: flex; height: 800px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-app); box-shadow: var(--shadow-window); transition: width var(--dur-4) var(--ease-inout); }
.wa-window.is-entering { animation: wa-window-in var(--dur-5) var(--ease-out) both; }
.wa-winctl { display: flex; align-self: stretch; }
.wa-winctl-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: var(--size-row); border: 0; padding: 0; background: transparent; color: var(--ink-2); cursor: default; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-winctl-btn:hover { background: var(--fill-hover); color: var(--ink); }
.wa-winctl-btn--close:hover { background: var(--danger); color: var(--on-accent); }
.wa-smallwin { position: relative; display: flex; flex-direction: column; width: var(--size-small-window); height: 548px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-window); overflow: hidden; animation: wa-window-in var(--dur-5) var(--ease-out) both; }
.wa-smallwin-top { display: flex; justify-content: flex-end; height: 32px; flex: none; }
.wa-smallwin-top .wa-winctl-btn { height: 32px; width: 40px; }
.wa-smallwin-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 36px 44px; text-align: center; }
.wa-smallwin-body .wa-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wa-smallwin-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: 8px; }

/* ---------- Sidebar ---------- */
.wa-sidebar { position: relative; width: var(--size-sidebar); flex: none; background: var(--bg-sidebar); border-right: 1px solid var(--line-subtle); overflow: hidden; transition: width var(--dur-4) var(--ease-inout); }
/* collapsed = an icon rail, not zero: expand, new chat, search on top, avatar at the bottom (Claude desktop). Keeps the left edge anchored so the thread doesn't float in a sea of white */
.wa-sidebar.is-collapsed { width: var(--size-rail); overflow: visible; }
.wa-side-inner { transition: opacity var(--dur-2) linear; }
.wa-sidebar.is-collapsed .wa-side-inner { opacity: 0; pointer-events: none; visibility: hidden; }
.wa-side-rail { position: absolute; inset: 0 auto 0 0; width: var(--size-rail); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 8px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-2) linear; }
.wa-sidebar.is-collapsed .wa-side-rail { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: var(--dur-2); }
.wa-rail-top { height: var(--size-row); flex: none; display: flex; align-items: center; }
.wa-rail-btn { width: 36px; height: 36px; }
.wa-rail-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 0 0 2px var(--bg-sidebar); }
.wa-rail-dot.is-reply { background: var(--reply); }
.wa-rail-fill { flex: 1; }
.wa-rail-user { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-md); background: transparent; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-rail-user:hover { background: var(--fill-hover); }
.wa-side-rail .wa-iconbtn { position: relative; }
.wa-tip--right { left: calc(100% + 8px); top: 50%; transform: translate(-2px, -50%); z-index: 30; }
.wa-iconbtn:hover .wa-tip--right { transform: translate(0, -50%); }
.wa-side-inner { width: var(--size-sidebar); height: 100%; display: flex; flex-direction: column; padding: 0 8px 8px; }
.wa-side-top { height: var(--size-row); flex: none; display: flex; align-items: center; }
.wa-newchat { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font-size: 13px; line-height: 20px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-newchat:hover { background: var(--fill-hover); }
.wa-newchat .wa-kbd { margin-left: auto; opacity: 0; transform: translateX(-2px); transition: opacity var(--dur-2) linear, transform var(--dur-2) var(--ease-out); }
.wa-newchat:hover .wa-kbd, .wa-newchat:focus-visible .wa-kbd { opacity: 1; transform: none; }
.wa-side-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 4px -8px 0; padding: 0 8px; }
/* sidebar groups: no divider lines. Each group name is a small button with a chevron that folds the group; told apart by the gap above and a small, light, regular-weight label (never bold) */
.wa-side-group { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-top: 14px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-4); font: inherit; font-size: 12px; line-height: 18px; font-weight: 400; text-align: left; cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-side-group:hover { background: var(--fill-hover); color: var(--ink-3); }
.wa-side-group .wa-ico { width: 11px; height: 11px; opacity: 0.85; transition: transform var(--dur-2) var(--ease-out); }
.wa-side-group.is-open .wa-ico { transform: rotate(90deg); }
.wa-side-group.is-first { margin-top: 4px; }
.wa-side-group:not(.is-open) + .wa-side-group { margin-top: 0; }
.wa-side-search { font-weight: 400; }
/* search palette: opens in the middle of the window, over a scrim */
.wa-search { position: absolute; left: 50%; top: 88px; width: 560px; max-height: calc(100% - 168px); display: flex; flex-direction: column; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(-50%); overflow: hidden; z-index: 2; animation: wa-search-in var(--dur-3) var(--ease-out) both; }
@keyframes wa-search-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateX(-50%); } }
.wa-search-top { display: flex; align-items: center; gap: 8px; padding: 14px 12px 8px 20px; }
.wa-search-input { flex: 1; min-width: 0; height: 32px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 22px; }
.wa-search-input::placeholder { color: var(--ink-3); }
.wa-root .wa-search-input:focus-visible { outline: none; }
.wa-search-tabs { display: flex; gap: 2px; padding: 0 14px 6px; }
.wa-search-tab { height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; line-height: 20px; cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-search-tab:hover { background: var(--fill-hover-surface); color: var(--ink); }
.wa-search-tab.is-on { background: var(--surface-sunken); color: var(--ink); font-weight: 600; }
.wa-search-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; }
.wa-search-sec { padding: 12px 12px 4px; color: var(--ink-3); font-size: 12px; line-height: 18px; font-weight: 600; }
.wa-search-row { display: flex; align-items: center; gap: 2px; width: 100%; height: 38px; padding: 0 10px 0 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 22px; text-align: left; }
.wa-search-row:hover, .wa-search-row.is-sel { background: var(--fill-hover-surface); }
.wa-search-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wa-search-act { gap: 10px; padding: 0 12px; cursor: pointer; }
.wa-search-open > .wa-ico, .wa-search-act > .wa-ico { flex: none; color: var(--ink-3); }
.wa-search-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-search-title mark { padding: 0 1px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-ink); }
.wa-search-title mark:empty { display: none; }
/* right side of a result: nothing at rest; the selected or hovered row shows ⋯ (more) and the return key. No dates. */
.wa-search-more, .wa-search-go { visibility: hidden; flex: none; color: var(--ink-3); }
.wa-search-go { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.wa-search-row.is-sel .wa-search-more, .wa-search-row.is-sel .wa-search-go, .wa-search-row:hover .wa-search-more, .wa-search-row:hover .wa-search-go, .wa-search-row:focus-within .wa-search-more { visibility: visible; }
.wa-search-none { display: flex; align-items: center; gap: 12px; padding: 18px 12px 6px; color: var(--ink-2); font-size: 13px; line-height: 20px; }
@media (prefers-reduced-motion: reduce) { .wa-search { animation: wa-fade var(--dur-2) linear both; } .wa-side-group .wa-ico { transition: none; } }
.wa-side-item { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 10px; border-radius: var(--radius-md); color: var(--ink-2); font-size: 13px; line-height: 20px; cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
/* three tiers of grey in the list: open session ink, other sessions ink-2, group labels ink-4; hovering a row lifts its text to ink */
.wa-side-item:hover, .wa-side-item.is-menu, .wa-side-item.is-renaming { color: var(--ink); }
.wa-side-item:hover { background: var(--fill-hover); }
.wa-side-item.is-active { background: var(--fill-selected); color: var(--ink); font-weight: 500; }
.wa-side-item.is-new { animation: wa-row-in var(--dur-4) var(--ease-out) both; overflow: hidden; }
.wa-side-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-side-more { opacity: 0; transition: opacity var(--dur-1) linear; }
.wa-side-item:hover .wa-side-more, .wa-side-item.is-active .wa-side-more { opacity: 1; }
/* unread is a dot alone, title unchanged */
.wa-side-unread { width: 7px; height: 7px; flex: none; margin: 0 7.5px; border-radius: var(--radius-full); background: var(--accent); animation: wa-pop var(--dur-3) var(--ease-spring) both; }
.wa-side-item:hover .wa-side-unread { display: none; }
/* status dots sit in the very slot of the ⋯ button (22 px wide, dot centred), so dot and ⋯ share one centre line; the dot gives way to ⋯ on hover, when the menu is open, or when the row is active */
.wa-side-unread + .wa-side-more, .wa-side-run + .wa-side-more { display: none; }
.wa-side-item:hover .wa-side-unread + .wa-side-more, .wa-side-item:hover .wa-side-run + .wa-side-more, .wa-side-item.is-menu .wa-side-unread + .wa-side-more, .wa-side-item.is-menu .wa-side-run + .wa-side-more { display: inline-flex; }
.wa-side-item:hover .wa-side-run, .wa-side-item.is-menu .wa-side-run, .wa-side-item.is-menu .wa-side-unread { display: none; }
/* two kinds of unread dot: blue = DeskMate finished something (an answer, a report); green = the service desk replied on the ticket. Waiting tickets get nothing. */
.wa-side-unread.is-reply, .wa-side-unread.is-reply.is-pop::after { background: var(--reply); }
.wa-side-user { display: flex; align-items: center; gap: 10px; height: 48px; flex: none; padding: 0 8px; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-side-user:hover { background: var(--fill-hover); }
.wa-side-user-name { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.wa-side-user-sub { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* ---------- Main column ---------- */
.wa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.wa-toprow { height: var(--size-row); flex: none; display: flex; align-items: center; gap: 4px; padding-left: 12px; }
.wa-toptitle { flex: 1; min-width: 0; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 600; }
.wa-toptitle.is-new { animation: wa-fade var(--dur-3) linear both; }
.wa-body { flex: 1; min-height: 0; display: flex; position: relative; }
.wa-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.wa-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 32px 24px; scroll-behavior: smooth; }
.wa-thread-col { max-width: var(--size-thread); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.wa-dock { flex: none; padding: 0 32px 14px; }
.wa-dock-col { max-width: var(--size-thread); margin: 0 auto; position: relative; }
.wa-privacy { margin-top: 10px; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 18px; }

/* ---------- Empty state ---------- */
.wa-empty { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 32px 24px; text-align: center; }
.wa-empty > * { animation: wa-fade-up var(--dur-5) var(--ease-out) both; }
.wa-empty > *:nth-child(2) { animation-delay: 60ms; }
.wa-empty > *:nth-child(3) { animation-delay: 120ms; }
.wa-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; }
.wa-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; line-height: 20px; cursor: pointer;
  transition: border-color var(--dur-2) linear, color var(--dur-2) linear, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.wa-chip:hover { border-color: var(--line-control); color: var(--ink); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.wa-chip:active { transform: translateY(0) scale(0.98); }

/* ---------- Composer ---------- */
.wa-composer { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 10px 16px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-2) linear, box-shadow var(--dur-3) var(--ease-out); }
.wa-composer:focus-within, .wa-composer.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
.wa-composer.is-disabled { background: var(--bg-sidebar); }
.wa-input { display: block; width: 100%; min-height: 26px; max-height: 156px; padding: 0 6px 0 0; border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 26px; }
.wa-input::placeholder { color: var(--ink-3); }
.wa-input:focus-visible { outline: none; }
.wa-composer-bar { display: flex; align-items: center; gap: 8px; }
.wa-composer-bar .wa-spacer { flex: 1; }
.wa-send { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-2) linear, color var(--dur-2) linear, transform var(--dur-1) var(--ease-out); }
.wa-send:hover { background: var(--fill-hover-surface); }
.wa-send:active { transform: scale(0.92); }
.wa-send:disabled { background: transparent; color: var(--ink-disabled); cursor: default; transform: none; }
.wa-send.is-stop { color: var(--ink); }
.wa-send.is-stop:hover { background: var(--fill-hover-surface); }
.wa-send .wa-ico { width: 18px; height: 18px; stroke-width: 1.8; }
.wa-send-ico { animation: wa-icon-in var(--dur-2) var(--ease-out) both; }
.wa-atts { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-att { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; max-width: 240px; padding: 0 30px 0 8px; border-radius: var(--radius-md); border: 1px solid var(--line-subtle); background: var(--bg-sidebar); animation: wa-pop var(--dur-3) var(--ease-out) both; }
.wa-att-name { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-att.is-error { border-color: var(--danger); background: var(--danger-soft); }
.wa-hint { display: flex; align-items: center; gap: 6px; color: var(--danger-ink); font-size: 12px; line-height: 18px; animation: wa-fade-up var(--dur-3) var(--ease-out) both; }

/* ---------- Messages ---------- */
.wa-turn { display: flex; flex-direction: column; gap: 18px; }
.wa-user { align-self: flex-end; max-width: 78%; padding: 9px 16px; border-radius: var(--radius-xl) var(--radius-xl) 6px var(--radius-xl); background: var(--surface-sunken); color: var(--ink); font-size: 15px; line-height: 26px; white-space: pre-wrap; animation: wa-msg-in var(--dur-3) var(--ease-out) both; }
.wa-answer { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wa-prose { font-size: 15px; line-height: 26px; color: var(--ink); text-wrap: pretty; }
.wa-prose p { margin: 0; }
.wa-chunk { animation: wa-chunk-in 260ms var(--ease-out) both; }

/* ---------- Status line ---------- */
.wa-status { display: inline-flex; align-items: center; gap: 7px; height: 26px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-3); font-size: 12px; line-height: 18px; cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-status:hover { background: var(--fill-hover); color: var(--ink-2); }
.wa-status-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: none; }
.wa-status-ico > * { animation: wa-icon-in var(--dur-3) var(--ease-spring) both; }
.wa-status-ico .wa-spin { animation: wa-spin 0.8s linear infinite; }
.wa-status-label { white-space: nowrap; }
.wa-status-label.is-swap { animation: wa-label-in var(--dur-3) var(--ease-out) both; }
.wa-status.is-running .wa-status-label { background: linear-gradient(90deg, var(--ink-3) 0%, var(--ink-3) 38%, var(--ink) 50%, var(--ink-3) 62%, var(--ink-3) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wa-shimmer 1.8s linear infinite; }
.wa-status.is-error { color: var(--danger-ink); }
.wa-status-chev { transition: transform var(--dur-2) var(--ease-out); }
.wa-status.is-open .wa-status-chev { transform: rotate(90deg); }
.wa-sources { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 4px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line-subtle); animation: wa-fade-up var(--dur-2) var(--ease-out) both; }
.wa-sources-row { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; line-height: 18px; }
.wa-sources-row .wa-meta { margin-left: auto; color: var(--ink-3); }

/* ---------- Citation marker + popover ---------- */
.wa-cite-wrap { position: relative; display: inline-block; }
.wa-cite { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin: 0 3px 0 4px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--c, var(--cite-1)); color: var(--on-accent); font-size: 10px; line-height: 16px; font-weight: 700; font-family: var(--font-sans); font-variant-numeric: tabular-nums; vertical-align: 2px; cursor: pointer;
  animation: wa-cite-in var(--dur-3) var(--ease-spring) both; transition: background-color var(--dur-2) linear, color var(--dur-2) linear, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.wa-cite:hover, .wa-cite.is-hover, .wa-cite.is-active { box-shadow: 0 0 0 3px var(--cs, var(--cite-1-soft)); transform: scale(1.08); }
.wa-cite--1, .wa-srcnum--1 { --c: var(--cite-1); --cs: var(--cite-1-soft); }
.wa-cite--2, .wa-srcnum--2 { --c: var(--cite-2); --cs: var(--cite-2-soft); }
.wa-cite--3, .wa-srcnum--3 { --c: var(--cite-3); --cs: var(--cite-3-soft); }
.wa-cite--4, .wa-srcnum--4 { --c: var(--cite-4); --cs: var(--cite-4-soft); }
.wa-cite--5, .wa-srcnum--5 { --c: var(--cite-5); --cs: var(--cite-5-soft); }
.wa-cite--6, .wa-srcnum--6 { --c: var(--cite-6); --cs: var(--cite-6-soft); }
.wa-srcnum { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; flex: none; border-radius: var(--radius-full); background: var(--c, var(--cite-1)); color: var(--on-accent); font-size: 10px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wa-popover { position: absolute; left: 50%; top: calc(100% + 14px); width: 304px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); text-align: left; z-index: 20; transform-origin: 50% 0;
  animation: wa-popover-in var(--dur-2) var(--ease-out) both; }
.wa-popover-head { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; line-height: 20px; font-weight: 600; }
.wa-popover-head .wa-tag { margin-left: auto; }
.wa-popover-sec { color: var(--ink-3); font-size: 12px; line-height: 18px; }
.wa-popover-quote { color: var(--ink-2); font-size: 13px; line-height: 21px; font-weight: 400; }
.wa-popover-foot { display: flex; align-items: center; gap: 4px; padding-top: 2px; color: var(--accent); font-size: 12px; line-height: 18px; }

/* ---------- Answer actions ---------- */
.wa-actions { display: flex; align-items: center; gap: 2px; margin-left: -6px; animation: wa-fade var(--dur-3) linear 80ms both; }
.wa-actions .wa-iconbtn { width: var(--size-control-sm); height: var(--size-control-sm); }

/* ---------- Boxes, cards, notices ---------- */
.wa-errbox { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px 10px 16px; border-radius: var(--radius-lg); background: var(--danger-soft); box-shadow: inset 3px 0 0 var(--danger); color: var(--danger-ink); animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-errbox .wa-ico { color: var(--danger); }
.wa-errbox-text { flex: 1; font-size: 14px; line-height: 22px; }
.wa-errbox-text b { margin-right: 8px; font-weight: 600; color: var(--danger-ink); }
.wa-errbox .wa-btn--secondary { border-color: transparent; }
.wa-errbox .wa-iconbtn { color: var(--danger-ink); }
.wa-errbox .wa-iconbtn:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger-ink); }
.wa-notice { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 20px; text-align: left; }
.wa-notice--danger { background: var(--danger-soft); color: var(--danger-ink); }
.wa-notice--warning { background: var(--warning-soft); color: var(--warning-ink); }
.wa-notice--danger .wa-ico { color: var(--danger); }
.wa-notice--warning .wa-ico { color: var(--warning); }
.wa-offline { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--radius-full); background: var(--warning-soft); color: var(--warning-ink); font-size: 12px; line-height: 18px; animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-offline .wa-dot { background: var(--warning); animation: wa-breathe 1.6s var(--ease-inout) infinite; }
.wa-card { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs); animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-card-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.wa-card-text { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.wa-card-text b { color: var(--ink); font-weight: 600; }
.wa-fields { display: flex; flex-direction: column; gap: 6px; }
.wa-field-label { color: var(--ink-3); font-size: 12px; line-height: 18px; }
.wa-readonly { padding: 6px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-2); font-size: 13px; line-height: 21px; }
.wa-card-foot { display: flex; justify-content: flex-end; gap: 8px; }
.wa-desks { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 4px; text-align: left; }
.wa-desks-label { padding: 0 2px; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-desklist { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.wa-desk { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; border-top: 1px solid var(--line-subtle); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-desk:first-child { border-top: 0; }
.wa-desk:hover { background: var(--fill-hover-surface); }
.wa-desk-name { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; }
.wa-desk-meta { font-size: 12px; line-height: 18px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-desk-go { display: inline-flex; color: var(--ink-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) linear; }
.wa-desk:hover .wa-desk-go { color: var(--ink-2); transform: translateX(2px); }

/* ---------- Select + menu ---------- */
.wa-selectwrap { position: relative; display: inline-flex; }
.wa-select { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: var(--radius-md); border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 20px; cursor: pointer; transition: border-color var(--dur-1) linear, box-shadow var(--dur-2) var(--ease-out); }
.wa-select:hover { border-color: var(--ink-3); }
.wa-select.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-select .wa-ico { color: var(--ink-3); transition: transform var(--dur-2) var(--ease-out); }
.wa-select.is-open .wa-ico { transform: rotate(180deg); }
.wa-selectwrap--inline { display: inline-flex; vertical-align: baseline; margin: 0 2px; }
.wa-select--inline { height: 24px; gap: 2px; padding: 0 4px 0 8px; border: 0; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); font-size: 14px; line-height: 22px; font-weight: 600; vertical-align: baseline; transform: translateY(-1px); }
.wa-select--inline:hover { background: var(--fill-hover); }
.wa-select--inline.is-open { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.wa-select--inline.is-open .wa-ico { color: var(--accent-ink); }
.wa-selectwrap--inline .wa-menu { top: calc(100% + 4px); font-weight: 400; text-align: left; }
.wa-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; display: flex; flex-direction: column; padding: 4px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); z-index: 25; transform-origin: 0 0; animation: wa-menu-in var(--dur-2) var(--ease-out) both; }
.wa-menu-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: 13px; line-height: 20px; text-align: left; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-menu-item:hover { background: var(--fill-hover-surface); }
.wa-menu-item .wa-meta { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.wa-menu-item .wa-check { width: 16px; color: var(--accent); }
.wa-menu-item--danger { color: var(--danger); }
.wa-menu-sep { height: 1px; margin: 4px 6px; background: var(--line-subtle); }

/* ---------- Switch ---------- */
.wa-switch { position: relative; display: inline-flex; width: 34px; height: 20px; flex: none; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--line-control); cursor: pointer; transition: background-color var(--dur-2) linear; }
.wa-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--surface); box-shadow: 0 1px 2px rgba(31, 29, 26, 0.2); transition: transform var(--dur-3) var(--ease-spring); }
.wa-switch.is-on { background: var(--accent); }
.wa-switch.is-on::after { transform: translateX(14px); }

/* ---------- Dialog ---------- */
.wa-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur-3) linear; z-index: 40; }
.wa-scrim.is-open { opacity: 1; pointer-events: auto; }
.wa-dialog { position: absolute; left: 50%; top: 50%; width: 400px; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 20px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); transform: translate(-50%, -50%); z-index: 41; animation: wa-dialog-in var(--dur-3) var(--ease-out) both; }
.wa-dialog-title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-dialog-text { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.wa-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------- Right panel ---------- */
.wa-panel-slot { position: relative; width: 0; flex: none; overflow: hidden; transition: width var(--dur-4) var(--ease-inout); }
.wa-panel-slot.is-open { width: var(--size-panel); }
.wa-panel { position: absolute; left: 0; top: 0; bottom: 0; width: var(--size-panel); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line-subtle); opacity: 0; transform: translateX(32px);
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3) linear; }
.wa-panel-slot.is-open .wa-panel { opacity: 1; transform: none; }
.wa-body.is-narrow .wa-panel-slot { position: absolute; top: 0; right: 0; bottom: 0; width: var(--size-panel); z-index: 42; transform: translateX(100%); transition: transform var(--dur-4) var(--ease-out); box-shadow: var(--shadow-lg); overflow: visible; }
.wa-body.is-narrow .wa-panel-slot.is-open { transform: none; }
.wa-body.is-narrow .wa-panel { opacity: 1; transform: none; border-left: 0; }
.wa-body:not(.is-narrow) .wa-scrim { display: none; }
.wa-panel-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line-subtle); }
.wa-panel-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 22px; font-weight: 600; }
.wa-panel-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px 0; }
.wa-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 24px 32px; }
.wa-src h3 { margin: 0 0 10px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.wa-src p { margin: 0 0 12px; font-size: 14px; line-height: 24px; color: var(--ink-2); }
.wa-src-crumb { margin-bottom: 12px; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.wa-hl { padding: 2px 0; border-radius: 3px; background: var(--hl-soft, var(--cite-1-soft)); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: wa-hl-flash 1400ms var(--ease-out) 260ms both; }
.wa-hl--1 { --hl-soft: var(--cite-1-soft); }
.wa-hl--2 { --hl-soft: var(--cite-2-soft); }
.wa-hl--3 { --hl-soft: var(--cite-3-soft); }
.wa-hl--4 { --hl-soft: var(--cite-4-soft); }
.wa-hl--5 { --hl-soft: var(--cite-5-soft); }
.wa-hl--6 { --hl-soft: var(--cite-6-soft); }
.wa-panel-fail { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 40px 40px; text-align: center; }

/* Handoff confirm card: same blue family as the 转人工 chip and the 确认转人工 button */
.wa-card--handoff { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 96px); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.03), 0 4px 14px color-mix(in srgb, var(--accent) 8%, transparent); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) linear;  transform-origin: 0 0; animation: wa-card-unfold 420ms var(--ease-out) both; }
.wa-card--handoff:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 1px 3px rgba(22, 26, 33, 0.04), 0 8px 22px color-mix(in srgb, var(--accent) 12%, transparent); }
.wa-card--handoff > * { animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-card--handoff > :nth-child(1) { animation-delay: 120ms; } .wa-card--handoff > :nth-child(2) { animation-delay: 170ms; } .wa-card--handoff > :nth-child(3) { animation-delay: 220ms; } .wa-card--handoff > :nth-child(4) { animation-delay: 270ms; } .wa-card--handoff > :nth-child(5) { animation-delay: 320ms; }
.wa-card--handoff.is-closing { pointer-events: none; animation: wa-card-fold 280ms var(--ease-in) both; }
.wa-card--handoff.is-closing > * { animation: wa-fade-out 120ms linear both; }
.wa-card--handoff .wa-card-title { display: flex; align-items: center; gap: 10px; color: var(--accent-ink); }
.wa-card--handoff .wa-card-title .wa-action-ico { width: 26px; height: 26px; }
.wa-card--handoff .wa-select--inline { background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.wa-card--handoff .wa-select--inline:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.wa-card--handoff .wa-select--inline.is-open { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

.wa-textarea { width: 100%; box-sizing: border-box; min-height: 60px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; line-height: 21px; resize: none; outline: none; transition: border-color var(--dur-1) linear, box-shadow var(--dur-2) var(--ease-out); }
.wa-textarea::placeholder { color: var(--ink-3); }
.wa-textarea:hover { border-color: var(--line-control); }
.wa-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-extra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.wa-extra-add { margin-left: -6px; color: var(--ink-2); }
.wa-filechip ~ .wa-extra-add { margin-left: 0; }
.wa-filechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 220px; padding: 0 4px 0 8px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); font-size: 12px; line-height: 18px; animation: wa-pop var(--dur-3) var(--ease-out) both; }
.wa-filechip-ico { display: inline-flex; color: var(--ink-3); }
.wa-filechip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-filechip-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--ink-3); cursor: pointer; }
.wa-filechip-x:hover { background: var(--fill-hover); color: var(--ink); }

/* ---------- Action chip (转人工 / 查看工单) ---------- */
.wa-action { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 2px; padding: 0 12px 0 5px; border: 0; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; line-height: 20px; font-weight: 600; cursor: pointer; text-align: left;
  animation: wa-fade-up var(--dur-3) var(--ease-out) 80ms both; transition: background-color var(--dur-2) linear, color var(--dur-2) linear, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.wa-action-ico { display: inline-flex; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--accent); overflow: hidden; box-shadow: 0 0 0 0 transparent; transition: box-shadow var(--dur-2) var(--ease-out); }
.wa-action-ico svg { display: block; width: 100%; height: 100%; transform-origin: 50% 60%; }
.wa-action:hover .wa-action-ico { box-shadow: 0 0 0 1.5px var(--on-accent); }
.wa-action:hover .wa-action-ico svg { animation: mk-hop 0.5s var(--ease-spring) both; }
.wa-action--quiet:hover .wa-action-ico { box-shadow: none; }
.wa-action-meta { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); font-weight: 500; }
.wa-action-meta::before { content: "·"; margin-right: 8px; }
.wa-action-go { display: inline-flex; opacity: 0.7; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) linear; }
.wa-action:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.wa-action:hover .wa-action-meta { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.wa-action:hover .wa-action-go { opacity: 1; transform: translateX(2px); }
.wa-action:active { transform: scale(0.98); }
.wa-action--quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.wa-action--quiet .wa-action-meta { color: var(--ink-3); }
.wa-action--quiet:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-control), 0 4px 12px rgba(22, 26, 33, 0.08); }
.wa-action--quiet:hover .wa-action-meta { color: var(--ink-2); }
.wa-action--quiet:hover .wa-action-go { transform: translateX(2px); }

.wa-oops { display: flex; align-items: flex-start; gap: 16px; width: 100%; max-width: 600px; box-sizing: border-box; padding: 18px 18px 16px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--danger) 16%, transparent); background: linear-gradient(120deg, var(--danger-soft) 0, var(--surface) 62%); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.03), 0 4px 14px color-mix(in srgb, var(--danger) 6%, transparent); animation: wa-fade-up var(--dur-3) var(--ease-out) backwards; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) linear; }
.wa-oops:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--danger) 20%, transparent); box-shadow: 0 1px 3px rgba(22, 26, 33, 0.04), 0 8px 22px color-mix(in srgb, var(--danger) 9%, transparent); }
.wa-oops > .wa-mark { margin-top: 2px; }
.wa-oops-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-oops-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.wa-oops-text { margin-top: 2px; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.wa-oops .wa-nextrow { margin-top: 12px; }
.wa-nextrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wa-action-ico--plain { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunken); color: var(--ink-2); border-radius: var(--radius-full); }
.wa-action--quiet:hover .wa-action-ico--plain { color: var(--ink); }
.wa-action--quiet:hover .wa-action-ico--plain .wa-ico { transform: rotate(-120deg); }
.wa-action-ico--plain .wa-ico { transition: transform var(--dur-4) var(--ease-out); }

/* ---------- Offline pill: the mark dozes while the plug keeps trying ---------- */
.wa-offline--fun { gap: 10px; height: 40px; padding: 0 16px 0 6px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.03), 0 4px 14px rgba(22, 26, 33, 0.06); animation: wa-fade-up var(--dur-3) var(--ease-out) backwards; }
.wa-offline-mark { position: relative; display: inline-flex; }
.wa-offline-mark .wa-mark { width: 28px; height: 28px; border-radius: 8px; --mark: var(--ink-3); }
.wa-zz { position: absolute; left: 22px; top: -6px; pointer-events: none; }
.wa-zz i { position: absolute; font-style: normal; font-size: 10px; line-height: 1; font-weight: 700; color: var(--ink-3); opacity: 0; animation: wa-zz 2.4s var(--ease-out) infinite; }
.wa-zz i:nth-child(2) { left: 6px; top: -4px; font-size: 8px; animation-delay: 1.2s; }
.wa-plug { width: 30px; height: 14px; flex: none; overflow: visible; }
.wa-plug--lg { width: 60px; height: 28px; margin: -4px 0 -2px; }
.wa-plug rect { fill: var(--ink-3); }
.wa-plug .wa-plug-socket { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.wa-plug .wa-plug-prong, .wa-plug .wa-plug-cable { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; }
.wa-plug-l { animation: wa-plug-try 2.4s var(--ease-inout) infinite; }
.wa-plug-spark path { fill: none; stroke: var(--warning); stroke-width: 1.3; stroke-linecap: round; }
.wa-plug-spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wa-plug-spark 2.4s linear infinite; }
.wa-offline-text { font-size: 13px; line-height: 20px; }
@keyframes wa-zz { 0% { opacity: 0; transform: translate(0, 4px) scale(0.8); } 20% { opacity: 1; } 80% { opacity: 0.6; } 100% { opacity: 0; transform: translate(6px, -10px) scale(1.1); } }
@keyframes wa-plug-try { 0%, 30% { transform: translateX(0); } 46% { transform: translateX(4.6px); } 52% { transform: translateX(3.4px); } 58% { transform: translateX(4.6px); } 74%, 100% { transform: translateX(0); } }
@keyframes wa-plug-spark { 0%, 44% { opacity: 0; transform: scale(0.6); } 48% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.2); } }

/* ---------- Speech bubble from the mark (登录失败) ---------- */
.wa-say { position: relative; max-width: 280px; margin-top: 4px; padding: 12px 16px; border-radius: 16px; background: var(--danger-soft); color: var(--danger-ink); font-size: 13px; line-height: 20px; text-align: center; transform-origin: 50% -8px; animation: wa-say 460ms var(--ease-spring) 0.45s backwards; }
.wa-say--late { animation-delay: 0.9s; }
.wa-say--warn { background: var(--warning-soft); color: var(--warning-ink); }
.wa-say--neutral { background: var(--surface-sunken); color: var(--ink-2); }
.wa-say--neutral b { color: var(--ink); }
.wa-say--brand { background: var(--accent-soft); color: var(--accent-ink); }
.wa-say-meta { display: block; margin-top: 6px; font-size: 12px; line-height: 18px; opacity: 0.75; }
.wa-say::before { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 3px 0 0 0; background: inherit; transform: rotate(45deg); }
.wa-say b { display: block; margin-bottom: 2px; font-size: 15px; line-height: 22px; font-weight: 600; }
@keyframes wa-say { from { opacity: 0; transform: translateY(-6px) scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- In-window sign-in ---------- */
.wa-login { gap: 12px; }
.wa-login .wa-say { margin-bottom: 2px; }
.wa-login-form { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.wa-input-field { display: flex; flex-direction: column; gap: 4px; }
.wa-text { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; outline: none; transition: border-color var(--dur-1) linear, box-shadow var(--dur-2) var(--ease-out); }
.wa-text::placeholder { color: var(--ink-3); }
.wa-text:hover { border-color: var(--line-control); }
.wa-text:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-text.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.wa-text-wrap { position: relative; display: block; }
.wa-text-wrap .wa-text { padding-right: 40px; }
.wa-text-eye { position: absolute; right: 4px; top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-3); cursor: pointer; }
.wa-text-eye:hover { background: var(--fill-hover-surface); color: var(--ink); }
@keyframes mk-gift-hop { 0%, 58%, 100% { transform: none; } 64% { transform: translateY(-2.4px) rotate(-6deg); } 70% { transform: none; } 75% { transform: translateY(-1.4px) rotate(4deg); } 80% { transform: none; } }
@keyframes mk-star-glance { 0%, 82%, 100% { transform: none; } 86%, 96% { transform: translate(-1px, 2.2px) scale(0.92); } }
@keyframes mk-spark { 0%, 100% { opacity: 0.35; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
.wa-mark .mk-follow { transition: transform 140ms var(--ease-out); }
.wa-otp { display: flex; gap: 8px; }
.wa-otp-cell { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 48px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color var(--dur-2) linear, box-shadow var(--dur-2) var(--ease-out); }
.wa-otp-cell.is-filled { border-color: var(--line-control); animation: wa-otp-in var(--dur-3) var(--ease-spring) both; }
.wa-otp-cell.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-otp-cell.is-current::after { content: ""; width: 2px; height: 22px; border-radius: 1px; background: var(--accent); animation: wa-caret 1s steps(1) infinite; }
@keyframes wa-otp-in { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wa-caret { 50% { opacity: 0; } }

/* ---------- F3: session list, menu, rename ---------- */
.wa-side-empty { margin: 22px 0 0; padding: 0 10px; color: var(--ink-3); font-size: 12px; line-height: 20px; }
.wa-side-item.is-menu, .wa-side-item.is-menu .wa-side-more { background: var(--fill-hover); opacity: 1; }
.wa-side-menu { left: auto; right: 0; top: calc(100% + 2px); min-width: 168px; z-index: 30; animation: wa-pop var(--dur-2) var(--ease-out) both; }
.wa-menu-item .wa-ico { color: var(--ink-3); }
.wa-menu-item--danger .wa-ico { color: var(--danger); }
.wa-side-item.is-renaming { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); padding-right: 6px; }
.wa-side-rename { flex: 1; min-width: 0; height: 24px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; outline: none; }
.wa-side-rename::selection { background: var(--accent-soft); }
.wa-hist-skel { gap: 22px; padding-top: 12px; }
.wa-skel-bubble { align-self: flex-end; width: 46%; height: 42px; border-radius: var(--radius-xl) var(--radius-xl) 6px var(--radius-xl); background: linear-gradient(90deg, var(--fill-hover-surface) 0%, var(--fill-hover) 50%, var(--fill-hover-surface) 100%); background-size: 200% 100%; animation: wa-shimmer 1.4s linear infinite; }
.wa-skel-answer { display: flex; flex-direction: column; gap: 10px; }
.wa-fullpage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 32px 40px; text-align: center; animation: wa-fade var(--dur-4) linear both; }
.wa-fullpage .wa-say { max-width: 360px; }
.wa-fullpage-btn { width: 240px; margin-top: 4px; }
.wa-fullpage-desks { max-width: 360px; margin-top: 4px; }

/* ---------- F4: report card, report panel, desk reply ---------- */
.wa-report { display: flex; align-items: center; gap: 12px; width: 340px; max-width: 100%; padding: 12px 12px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(22, 26, 33, 0.03), 0 4px 14px rgba(22, 26, 33, 0.05); animation: wa-fade-up var(--dur-3) var(--ease-out) 80ms backwards; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) linear; }
.wa-report:hover { transform: translateY(-1px); border-color: var(--line-control); box-shadow: 0 1px 3px rgba(22, 26, 33, 0.04), 0 8px 22px rgba(22, 26, 33, 0.08); }
.wa-report.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-report-ico { display: inline-flex; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent); overflow: hidden; box-shadow: 0 1px 2px rgba(47, 91, 211, 0.18); }
.wa-report-ico svg, .wa-toast-lead--report svg { width: 100%; height: 100%; display: block; }
.wa-report-ico--sm { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.wa-report-ico .mk-bar, .wa-toast-lead--report .mk-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.wa-report:hover .wa-report-ico .mk-bar { animation: mk-bar-grow 520ms var(--ease-spring) both; }
.wa-report:hover .wa-report-ico .mk-bar:nth-of-type(2) { animation-delay: 60ms; }
.wa-report:hover .wa-report-ico .mk-bar:nth-of-type(3) { animation-delay: 120ms; }
@keyframes mk-bar-grow { 0% { transform: scaleY(1); } 35% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wa-report:hover .wa-report-ico .mk-bar { animation: none; } }
.wa-report-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-report-title { font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-report-sub { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-report .wa-action-go { color: var(--ink-3); }
.wa-report:hover .wa-action-go { transform: translateX(2px); opacity: 1; }
.wa-rep h3 { margin: 22px 0 10px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-3); }
.wa-rep-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.wa-rep-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.wa-rep-kpi-k { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-rep-kpi-v { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.wa-rep-kpi-v small { margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.wa-rep-chart { display: flex; flex-direction: column; gap: 6px; }
.wa-rep-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: 10px; height: 22px; border-radius: var(--radius-sm); cursor: default; }
.wa-rep-row:hover .wa-rep-bar { background: var(--accent-hover); }
.wa-rep-row:hover .wa-rep-city, .wa-rep-row:hover .wa-rep-val { color: var(--ink); }
.wa-rep-city { font-size: 12px; line-height: 18px; color: var(--ink-2); }
.wa-rep-track { position: relative; height: 12px; }
.wa-rep-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--accent); transform-origin: 0 50%; animation: wa-bar-grow 520ms var(--ease-out) backwards; transition: background-color var(--dur-1) linear; }
.wa-rep-val { font-size: 12px; line-height: 18px; color: var(--ink-2); text-align: right; }
.wa-rep-unit { margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--ink-3); text-align: right; }
.wa-rep-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 24px; }
.wa-rep-list li + li { margin-top: 4px; }
@keyframes wa-bar-grow { from { transform: scaleX(0); } to { transform: none; } }
.wa-deskreply { width: 100%; max-width: 600px; box-sizing: border-box; margin-top: 4px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-sunken); animation: wa-fade-up var(--dur-3) var(--ease-out) 120ms backwards; }
.wa-deskreply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wa-deskreply-ava { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: var(--radius-full); background: var(--cite-1); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.wa-deskreply--hr .wa-deskreply-ava { background: var(--cite-2); } .wa-deskreply--it .wa-deskreply-ava { background: var(--cite-6); } .wa-deskreply--adm .wa-deskreply-ava { background: var(--cite-3); }
.wa-deskreply-who { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.wa-deskreply-meta { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-deskreply--panel { max-width: none; margin: 0; }
.wa-tkchat { display: flex; flex-direction: column; gap: 10px; }
.wa-tkmine { align-self: flex-end; max-width: 86%; animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-tkmine-body { padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 22px; }
.wa-tkmine-meta { margin-top: 4px; text-align: right; font-size: 11px; line-height: 16px; color: var(--ink-3); }
.wa-tkacts { display: flex; gap: 8px; margin-top: 12px; }
.wa-tkacts .wa-btn { flex: 1; gap: 6px; }
.wa-tkask { margin-top: 12px; animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-tkask-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wa-tkask-note { flex: 1; font-size: 11px; line-height: 16px; color: var(--ink-3); }
.wa-tknote { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-tkdone { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 12px; line-height: 18px; color: var(--ink-2); animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-tkdone b { margin-right: 6px; color: var(--ink); font-weight: 600; }
.wa-deskreply--panel .wa-deskreply-body { font-size: 14px; line-height: 24px; }
.wa-tag--done { gap: 4px; background: var(--success-soft); color: var(--success); }
.wa-tag--done .wa-ico { width: 12px; height: 12px; stroke-width: 2; }
.wa-deskreply-body { font-size: 15px; line-height: 26px; color: var(--ink); }

/* ---------- F5: user menu, settings ---------- */
.wa-side-userwrap { position: relative; flex: none; }
.wa-side-user.is-open { background: var(--fill-selected); }
.wa-user-menu { left: 0; right: 0; top: auto; bottom: calc(100% + 6px); min-width: 0; z-index: 30; animation: wa-pop var(--dur-2) var(--ease-out) both; transform-origin: 50% 100%; }
.wa-update-tip { position: relative; display: flex; align-items: center; gap: 10px; margin: 6px 2px 6px; padding: 9px 9px 9px 10px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), #fff 78%); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 2px 8px rgba(47, 91, 211, 0.08); animation: wa-gift-in 520ms var(--ease-spring) both; }
.wa-gift { position: relative; flex: none; width: 30px; height: 30px; }
.wa-gift-mark { display: block; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); overflow: hidden; }
.wa-gift-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wa-gift-mark .mk-lid { transform-box: fill-box; transform-origin: 0% 100%; animation: mk-lid-peek 4.8s var(--ease-inout) 1s infinite; }
.wa-gift-mark .mk-eyes { animation: mk-gift-look 4.8s var(--ease-inout) 1s infinite; }
.wa-update-tip:hover .wa-gift-mark .mk-lid { animation: mk-lid-pop 420ms var(--ease-spring) both; }
.wa-update-tip:hover .wa-gift-mark .mk-eyes { animation: none; transform: translateY(-1.5px); }
.wa-confetti { position: absolute; width: 4px; height: 4px; border-radius: 1px; opacity: 0; animation: wa-confetti 4.8s var(--ease-out) 1s infinite; }
.wa-confetti.c1 { left: -3px; top: 2px; background: var(--cite-2); --dx: -4px; --dy: -6px; }
.wa-confetti.c2 { left: 13px; top: -5px; background: var(--cite-4); border-radius: 50%; --dx: 0px; --dy: -7px; animation-delay: 1.08s; }
.wa-confetti.c3 { right: -4px; top: 1px; background: var(--cite-1); --dx: 5px; --dy: -6px; animation-delay: 1.04s; }
.wa-confetti.c4 { right: 3px; top: -4px; background: var(--cite-3); border-radius: 50%; width: 3px; height: 3px; --dx: 3px; --dy: -8px; animation-delay: 1.12s; }
.wa-update-tip:hover .wa-confetti { animation: wa-confetti-pop 620ms var(--ease-out) both; }
.wa-update-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wa-update-text b { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.wa-update-text span { font-size: 12px; line-height: 17px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-update-go { flex: none; height: 26px; padding: 0 11px; border: 0; border-radius: var(--radius-full); background: var(--strong); color: var(--on-accent); font: 600 12px/18px var(--font-sans); cursor: pointer; transition: background-color var(--dur-1) linear, transform var(--dur-2) var(--ease-out); }
.wa-update-go:hover { background: var(--strong-hover); transform: translateY(-1px); }
.wa-update-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes wa-gift-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mk-lid-peek { 0%, 70%, 100% { transform: none; } 76%, 86% { transform: translateY(-2.6px) rotate(-14deg); } 80% { transform: translateY(-3.2px) rotate(-17deg); } }
@keyframes mk-lid-pop { 0% { transform: none; } 60% { transform: translateY(-5px) rotate(-22deg); } 100% { transform: translateY(-3.6px) rotate(-18deg); } }
@keyframes mk-gift-look { 0%, 70%, 100% { transform: none; } 76%, 86% { transform: translateY(-1.5px); } }
@keyframes wa-confetti { 0%, 72% { opacity: 0; transform: none; } 78% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(40deg); } }
@keyframes wa-confetti-pop { 0% { opacity: 0; transform: none; } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.6)) rotate(60deg); } }
@media (prefers-reduced-motion: reduce) { .wa-update-tip, .wa-gift-mark .mk-lid, .wa-gift-mark .mk-eyes, .wa-confetti { animation: none !important; } }
.wa-modal { position: absolute; inset: 0; z-index: 60; }
.wa-modal-scrim { position: absolute; inset: 0; background: var(--scrim); animation: wa-fade var(--dur-3) linear both; }
.wa-dialog--top { z-index: 3; }
.wa-settings { position: absolute; left: 50%; top: 50%; width: 760px; height: 560px; display: flex; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; transform: translate(-50%, -50%); z-index: 2; animation: wa-dialog-in var(--dur-3) var(--ease-out) both; }
.wa-settings-nav { width: 200px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 18px 10px; background: var(--bg-sidebar); border-right: 1px solid var(--line-subtle); }
.wa-settings-title { padding: 0 10px 8px; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-settings-group { padding: 12px 10px 4px; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink-3); }
.wa-settings-tab { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-2); font-size: 13px; line-height: 20px; text-align: left; cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-settings-tab .wa-ico { color: var(--ink-3); }
.wa-settings-tab:hover { background: var(--fill-hover); color: var(--ink); }
.wa-settings-tab.is-active { background: var(--fill-selected); color: var(--ink); font-weight: 500; }
.wa-settings-tab.is-active .wa-ico { color: var(--ink); }
.wa-settings-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-settings-head { display: flex; align-items: center; justify-content: space-between; height: 60px; flex: none; padding: 0 16px 0 28px; }
.wa-settings-h { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-settings-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 28px; }
.wa-settings-body > * { animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-settings-note { margin: 16px 0 0; font-size: 12px; line-height: 20px; color: var(--ink-3); }
.wa-settings-note .wa-btn--link { font-size: 12px; }
.wa-avatar--lg { width: 48px; height: 48px; font-size: 18px; }
.wa-profile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wa-profile-name { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-profile-sub { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.wa-kvlist .wa-kv { grid-template-columns: 88px minmax(0, 1fr); }
.wa-setrows { display: flex; flex-direction: column; }
.wa-setrow { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 12px 0; border-top: 1px solid var(--line-subtle); }
.wa-setrow:first-child { border-top: 0; }
.wa-setrow-text { flex: 1; min-width: 0; }
.wa-setrow-t { font-size: 14px; line-height: 22px; font-weight: 500; color: var(--ink); }
.wa-setrow-d { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-seg { display: inline-flex; padding: 2px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.wa-seg-item { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 13px; line-height: 20px; cursor: pointer; transition: background-color var(--dur-2) linear, color var(--dur-2) linear, box-shadow var(--dur-2) var(--ease-out); }
.wa-seg-item:hover { color: var(--ink); }
.wa-seg-item.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 26, 33, 0.08), 0 0 0 1px var(--line-subtle); }
.wa-btn--danger-text { color: var(--danger); }
.wa-btn--danger-text:hover { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.wa-btn--erase, .wa-btn--upd { gap: 6px; padding: 0 14px 0 11px; color: var(--ink-2); }
.wa-btn--erase .wa-ico, .wa-btn--upd .wa-ico { color: var(--ink-3); transition: color var(--dur-1) linear, transform var(--dur-3) var(--ease-out); }
.wa-btn--erase:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); background: var(--danger-soft); }
.wa-btn--erase:hover .wa-ico { color: var(--danger); transform: rotate(-8deg); }
.wa-btn--upd:hover { color: var(--ink); }
.wa-btn--upd:hover .wa-ico { color: var(--ink-2); transform: rotate(-90deg); }
.wa-upd-state { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 7px; border-radius: var(--radius-full); background: var(--surface-sunken); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-2); animation: wa-upd-pop 260ms var(--ease-spring) both; }
.wa-upd-state.is-ok { background: var(--accent-soft); color: var(--accent-ink); }
@keyframes wa-upd-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-upd-state { animation: wa-fade var(--dur-2) linear both; } .wa-btn--upd:hover .wa-ico, .wa-btn--erase:hover .wa-ico { transform: none; } }
.wa-help h3 { margin: 4px 0 10px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-3); }
.wa-help h3 ~ h3 { margin-top: 22px; }
.wa-help-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-feedback { display: flex; flex-direction: column; gap: 10px; }
.wa-feedback .wa-textarea { min-height: 140px; font-size: 14px; line-height: 22px; }
.wa-feedback-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.wa-fb-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 72px; text-align: center; }

/* ---------- F6: close tip, desktop, tray, notifications ---------- */
.wa-closetip { align-items: center; gap: 14px; width: 360px; padding-top: 28px; text-align: center; }
.wa-os { position: relative; height: 800px; overflow: hidden; border-radius: 12px; background: var(--bg-desktop); }
.wa-os-wall { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 10%, #eef1f6 0%, #dde1e8 55%, #cfd5df 100%); }
.wa-os-quit { position: absolute; left: 50%; top: 46%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.8); color: var(--ink-2); font-size: 13px; transform: translate(-50%, -50%); box-shadow: var(--shadow-md); }
.wa-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(243, 245, 248, 0.86); backdrop-filter: blur(20px); border-top: 1px solid rgba(22, 26, 33, 0.08); }
.wa-taskbar-apps { display: flex; gap: 8px; }
.wa-taskbar-app { width: 30px; height: 30px; border-radius: 8px; background: rgba(22, 26, 33, 0.1); }
.wa-taskbar-app:nth-child(2) { background: rgba(47, 91, 211, 0.22); }
.wa-tray { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.wa-tray-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 32px; }
.wa-tray-app { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-tray-app:hover, .wa-tray-app.is-open { background: rgba(22, 26, 33, 0.08); }
.wa-tray-dot { position: absolute; right: 4px; top: 5px; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--danger); box-shadow: 0 0 0 2px #f3f5f8; animation: wa-pop var(--dur-3) var(--ease-spring) both; }
.wa-tray-clock { margin-left: 6px; font-size: 11px; line-height: 15px; color: var(--ink); text-align: right; }
.wa-os-menu { position: absolute; right: 70px; bottom: 54px; width: 200px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line-subtle); animation: wa-pop var(--dur-2) var(--ease-out) both; transform-origin: 80% 100%; }
.wa-os-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: 13px; line-height: 20px; text-align: left; cursor: pointer; }
.wa-os-menu-item:hover { background: var(--fill-hover-surface); }
.wa-os-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--danger); color: var(--on-accent); font-size: 11px; line-height: 18px; font-weight: 600; text-align: center; }
.wa-os-tip { position: absolute; right: 52px; bottom: 56px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-accent); font-size: 12px; line-height: 18px; animation: wa-pop var(--dur-2) var(--ease-out) both; }
.wa-toast { position: absolute; right: 16px; bottom: 60px; width: 360px; padding: 10px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.06), 0 20px 44px rgba(22, 26, 33, 0.18); border: 1px solid rgba(22, 26, 33, 0.07); cursor: pointer; animation: wa-toast-in 420ms var(--ease-out) both; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.wa-toast:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.06), 0 24px 52px rgba(22, 26, 33, 0.22); }
.wa-toast-head { display: flex; align-items: center; gap: 6px; height: 22px; margin-bottom: 10px; }
.wa-toast-app { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.wa-toast-dot, .wa-toast-time { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-toast-x { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: auto; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.wa-toast-x:hover { background: var(--fill-hover); color: var(--ink); }
.wa-toast-main { display: flex; align-items: center; gap: 12px; padding: 0 2px; }
.wa-toast-lead { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; }
.wa-toast-lead--report { border-radius: 11px; background: var(--accent); overflow: hidden; }
.wa-toast-lead--desk { border-radius: var(--radius-full); background: var(--cite-1); color: var(--on-accent); font-size: 15px; font-weight: 600; }
.wa-toast-lead-badge { position: absolute; right: -4px; bottom: -4px; display: inline-flex; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 0 2px #fff; overflow: hidden; }
.wa-toast-lead-badge svg { width: 100%; height: 100%; display: block; }
.wa-toast-text { flex: 1; min-width: 0; }
.wa-toast-t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.wa-toast-d { margin-top: 1px; overflow: hidden; font-size: 13px; line-height: 20px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
@keyframes wa-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Ticket panel ---------- */
.wa-action--quiet.is-active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.wa-tag--live { gap: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.wa-tag--live .wa-dot { width: 6px; height: 6px; background: var(--accent); animation: wa-breathe 1.6s var(--ease-inout) infinite; }
.wa-ticket h3 { margin: 4px 0 12px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-3); }
.wa-ticket h3 + .wa-kv { border-top: 0; }
.wa-steps { list-style: none; margin: 0 0 22px; padding: 0; }
.wa-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.wa-steps li:last-child { padding-bottom: 0; }
.wa-steps li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line); }
.wa-steps li.is-done:not(:last-child)::before { background: var(--accent); }
.wa-step-dot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border-radius: var(--radius-full); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); color: var(--on-accent); }
.wa-steps li.is-done .wa-step-dot { background: var(--accent); box-shadow: none; }
.wa-steps li.is-done .wa-step-dot .wa-ico { width: 12px; height: 12px; stroke-width: 2; }
.wa-steps li.is-current .wa-step-dot { box-shadow: inset 0 0 0 2px var(--accent); }
.wa-steps li.is-current .wa-step-dot::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent); animation: wa-breathe 1.6s var(--ease-inout) infinite; }
.wa-step-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.wa-steps li:not(.is-done):not(.is-current) .wa-step-title { color: var(--ink-3); font-weight: 500; }
.wa-step-sub { margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-kv { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-subtle); font-size: 14px; line-height: 22px; }
.wa-kv-k { color: var(--ink-3); font-size: 12px; line-height: 22px; }
.wa-kv-v { color: var(--ink); }
.wa-ticket-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; line-height: 20px; }

/* ---------- Back to bottom ---------- */
.wa-tobottom { position: absolute; left: 50%; bottom: 10px; margin-left: -17px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-md); cursor: pointer; z-index: 5; animation: wa-pop var(--dur-2) var(--ease-out) both; transition: color var(--dur-1) linear, transform var(--dur-1) var(--ease-out); }
.wa-tobottom:hover { color: var(--ink); }
.wa-tobottom:active { transform: scale(0.94); }

/* ---------- Keyframes ---------- */
@keyframes wa-spin { to { transform: rotate(360deg); } }
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wa-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wa-msg-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes wa-chunk-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wa-cite-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes wa-icon-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes wa-label-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes mk-wake { 0%, 45% { transform: scaleY(0.12); } 70% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }
@keyframes mk-breathe { 0%, 100% { transform: translateY(0.6px) scale(1); } 50% { transform: translateY(-0.6px) scale(1.025); } }
@keyframes mk-tilt { 0%, 12%, 88%, 100% { transform: rotate(0); } 30%, 66% { transform: rotate(-7deg); } }
@keyframes mk-brow { 0%, 18%, 78%, 100% { transform: translateY(0); } 34%, 62% { transform: translateY(-1.4px); } }
@keyframes mk-shake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-2.6px) rotate(-3deg); } 38% { transform: translateX(2.4px) rotate(2deg); } 58% { transform: translateX(-1.6px); } 78% { transform: translateX(0.8px); } }
@keyframes mk-peek { 0%, 34% { transform: translate(1.8px, 2px); } 44%, 58% { transform: translate(0, 0); } 68%, 100% { transform: translate(1.8px, 2px); } }
@keyframes mk-ponder { 0%, 100% { transform: translate(-1.6px, -1.8px); } 50% { transform: translate(1.4px, -1.8px); } }
@keyframes mk-hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-2.4px) scale(1.06); } 100% { transform: none; } }
@keyframes mk-peek-sm { 0%, 34% { transform: translate(3px, 3.4px); } 44%, 58% { transform: translate(0, 0); } 68%, 100% { transform: translate(3px, 3.4px); } }
@keyframes mk-ponder-sm { 0%, 100% { transform: translate(-3px, -3px); } 50% { transform: translate(3px, -3px); } }
@keyframes mk-bob-sm { 0%, 100% { transform: translateY(1.5px); } 50% { transform: translateY(-3px); } }
@keyframes mk-blink { 0%, 86%, 92%, 100% { transform: scaleY(1); } 89% { transform: scaleY(0.12); } }
@keyframes mk-bob { 0%, 100% { transform: translateY(0.8px); } 50% { transform: translateY(-1.6px); } }
@keyframes wa-card-unfold { 0% { opacity: 0.4; clip-path: inset(0 calc(100% - 132px) calc(100% - 36px) 0 round 18px); background-color: var(--accent-soft); } 60% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0 0 0 0 round 12px); } }
@keyframes wa-card-fold { 0% { opacity: 1; clip-path: inset(0 0 0 0 round 12px); } 100% { opacity: 0.3; clip-path: inset(0 calc(100% - 132px) calc(100% - 36px) 0 round 18px); background-color: var(--accent-soft); } }
@keyframes wa-fade-out { to { opacity: 0; } }
@keyframes wa-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes wa-popover-in { from { opacity: 0; transform: translate(-50%, -4px) scale(0.98); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wa-menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes wa-dialog-in { from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes wa-window-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes wa-row-in { from { opacity: 0; height: 0; } to { opacity: 1; height: 32px; } }
@keyframes wa-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes wa-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes wa-indet { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@keyframes wa-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes wa-hl-flash { from { background-color: color-mix(in srgb, var(--hl) 30%, var(--surface)); } to { background-color: var(--hl-soft); } }

@media (prefers-reduced-motion: reduce) {
  .wa-root *, .wa-root *::before, .wa-root *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .wa-root .wa-spin { animation: wa-spin 1.6s linear infinite !important; }
  .wa-root .wa-progress.is-indeterminate .wa-progress-bar { animation: wa-breathe 2s linear infinite !important; transform: none; left: 34%; }
  .wa-root .wa-status.is-running .wa-status-label { animation: none !important; background: none; color: var(--ink-3); }
}

/* ===== Gap-sheet states (缺口清单 B / C / A) ===== */
/* new faces for the live mark */

/* login lock and one-time code */
.wa-login-form.is-locked { opacity: 0.45; pointer-events: none; filter: saturate(0); }
.wa-countdown { font-weight: 600; }
.wa-otp.is-error { animation: wa-shake-x 420ms var(--ease-out) both; }
.wa-otp.is-error .wa-otp-cell { border-color: var(--danger); color: var(--danger-ink); background: var(--danger-soft); }
.wa-otp.is-dim .wa-otp-cell { opacity: 0.5; }
@keyframes wa-shake-x { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* sidebar: breathing grey dot while answering, blue pop when done (C1), loading and failure (B18) */
.wa-side-run { width: 7px; height: 7px; flex: none; margin: 0 7.5px; border-radius: var(--radius-full); background: var(--ink-3); animation: wa-dot-breathe 1.6s var(--ease-inout) infinite; }
@keyframes wa-dot-breathe { 0%, 100% { opacity: 0.35; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1); } }
.wa-side-unread.is-pop { position: relative; animation: wa-dot-done 700ms var(--ease-out) both; }
.wa-side-unread.is-pop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); animation: wa-dot-ripple 400ms var(--ease-out) 360ms both; }
@keyframes wa-dot-done { 0% { background: var(--ink-3); opacity: 0.6; transform: scale(0.82); } 40% { background: var(--ink-3); opacity: 1; transform: scale(1); } 70% { background: var(--accent); transform: scale(1.15); } 100% { background: var(--accent); opacity: 1; transform: scale(1); } }
@keyframes wa-dot-ripple { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
.wa-side-skel { display: flex; flex-direction: column; gap: 18px; padding: 16px 10px; }
.wa-side-skel .wa-skel { height: 10px; }
.wa-side-skel .wa-skel:first-child { height: 8px; margin-bottom: -4px; }
/* list failed to load: two plain lines where the list would start, no frame; the whole block is the retry button and darkens on hover like a session row */
.wa-side-fail { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 14px 0 0; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; line-height: 20px; text-align: left; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-side-fail:hover { background: var(--fill-hover); }
.wa-side-fail-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 500; }
.wa-side-more-fail { display: block; margin: 4px 6px 12px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.wa-side-more-fail b { color: var(--accent); font-weight: 500; }
.wa-side-more-fail:hover { background: var(--fill-hover); }

/* top-left logo unwraps the gift on the first launch of a new version (C12) */
.wa-unwrap { position: relative; display: inline-flex; width: 24px; height: 24px; flex: none; }
.wa-unwrap-box { position: absolute; inset: 0; border-radius: 6px; background: var(--accent); animation: wa-unwrap-box 1.2s var(--ease-out) both; }
.wa-unwrap-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wa-unwrap-box .mk-lid { transform-box: fill-box; transform-origin: 10% 100%; animation: wa-unwrap-lid 1.2s var(--ease-out) both; }
.wa-unwrap-face { position: absolute; inset: 0; animation: wa-unwrap-face 1.2s var(--ease-spring) both; }
.wa-unwrap-star { position: absolute; left: 50%; top: 30%; width: 6px; height: 6px; margin: -3px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: wa-unwrap-star 1.2s var(--ease-out) both; }
.wa-unwrap-star.s1 { --sx: -14px; --sy: -14px; } .wa-unwrap-star.s2 { --sx: 4px; --sy: -20px; } .wa-unwrap-star.s3 { --sx: 18px; --sy: -8px; background: var(--warning); }
@keyframes wa-unwrap-box { 0%, 12% { transform: none; } 18% { transform: rotate(-8deg); } 24% { transform: rotate(8deg); } 30%, 50% { transform: none; opacity: 1; } 62%, 100% { opacity: 0; transform: scale(0.8); } }
@keyframes wa-unwrap-lid { 0%, 32% { transform: none; } 50% { transform: translate(-2px, -10px) rotate(-38deg); opacity: 1; } 62%, 100% { transform: translate(-4px, -16px) rotate(-60deg); opacity: 0; } }
@keyframes wa-unwrap-face { 0%, 52% { opacity: 0; transform: scale(0.5); } 76% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes wa-unwrap-star { 0%, 38% { opacity: 0; transform: none; } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(90deg); } }

/* composer: uploads (B6), long paste (B9), the four send states and supplements (C2); drag-in is the full-window .wa-dropzone, attachments are tiles (see revision 2026-11-20 below) */
.wa-composer { position: relative; }
.wa-ring { position: absolute; left: -3px; top: -3px; width: 36px; height: 36px; transform: rotate(-90deg); overflow: visible; }
.wa-ring-track { fill: none; stroke: var(--line); stroke-width: 2.4; }
.wa-ring-bar { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100.5; transition: stroke-dashoffset var(--dur-4) var(--ease-out); }
.wa-att.is-upfail { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.wa-att.is-upfail .wa-ring-bar, .wa-att.is-upfail .wa-ring-track { stroke: var(--danger); }
.wa-ring-retry { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: inherit; background: var(--surface); color: var(--danger); cursor: pointer; animation: wa-pop var(--dur-3) var(--ease-spring) both; }
.wa-send.is-ready .wa-send-ico { animation: wa-send-ready var(--dur-3) var(--ease-spring) both; }
@keyframes wa-send-ready { from { transform: translateY(1px); opacity: 0.5; } to { transform: translateY(-1px); opacity: 1; } }
.wa-send.is-stop .wa-send-ico { animation: wa-morph-in 220ms var(--ease-spring) both; }
@keyframes wa-morph-in { from { transform: scale(0.6) rotate(-45deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-send--add { position: relative; color: var(--accent); background: var(--accent-soft); }
.wa-send--add .wa-send-ico { animation: wa-morph-back 240ms var(--ease-spring) both; }
@keyframes wa-morph-back { from { transform: scale(0.6) rotate(45deg); border-radius: 2px; opacity: 0; } to { transform: none; opacity: 1; } }
.wa-send--add:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
@keyframes wa-droplet { 0% { transform: translateX(34px) scale(0.35); border-radius: 50%; opacity: 0; } 60% { transform: translateX(-2px) scale(1.05); border-radius: 40%; opacity: 1; } 100% { transform: none; } }
.wa-addq { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 82%; margin: 0 0 8px auto; padding: 5px 5px 5px 12px; border-radius: 14px 14px 6px 14px; background: var(--accent-soft); color: var(--ink); font-size: 13px; line-height: 20px; animation: wa-addq-in 260ms var(--ease-spring) both; }
@keyframes wa-addq-in { from { transform: translateY(14px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-addq-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-addq-note { flex: none; color: var(--ink-3); font-size: 12px; }
.wa-user-addtag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-size: 11px; line-height: 18px; font-weight: 600; vertical-align: 1px; }
.wa-user--add { margin-top: -10px; background: var(--accent-soft); animation: wa-add-drop 420ms var(--ease-spring) both; }
@keyframes wa-add-drop { from { transform: translateY(40px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-status.is-flash .wa-status-label { color: var(--accent-ink); font-weight: 500; }
.wa-status.is-paused .wa-status-label { color: var(--ink-3); }
.wa-status-net { display: inline-flex; color: var(--ink-3); animation: wa-dot-breathe 1.6s var(--ease-inout) infinite; }

/* long content (B10) */
.wa-user { overflow-wrap: anywhere; white-space: pre-wrap; }
.wa-user.is-clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.wa-user-more { align-self: flex-end; margin-top: -12px; padding: 2px 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.wa-user-more:hover { background: var(--fill-hover); }
.wa-tablewrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line-subtle); border-radius: var(--radius-md); }
.wa-table { border-collapse: separate; border-spacing: 0; min-width: 820px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.wa-table th, .wa-table td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--line-subtle); background: var(--surface); }
.wa-table tr:last-child td { border-bottom: 0; }
.wa-table th { background: var(--surface-sunken); color: var(--ink-2); font-weight: 600; }
.wa-table th:first-child, .wa-table td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line-subtle); font-weight: 600; }
.wa-table-note { margin-top: -10px; font-size: 12px; line-height: 18px; color: var(--ink-3); }

/* clarifying options (A1), direct link (A8), report being generated (B21) */
.wa-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-chip--opt { height: 32px; }
.wa-action--link { text-decoration: none; }
.mk-link { transform-origin: 50% 50%; }
.wa-action--link:hover .mk-link path { animation: mk-link-go var(--mk-react) var(--ease-spring) both; }
@keyframes mk-link-go { 0% { transform: none; } 45% { transform: translate(1.6px, -1.6px); } 100% { transform: none; } }
.wa-report.is-pending { position: relative; overflow: hidden; cursor: default; box-shadow: none; }
/* still being made: same solid card, no dashed edge, no spinner. A soft light sweeps across it (same rhythm as the status-line shimmer) and the mascot's bars keep growing */
.wa-report.is-pending::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 0%, transparent 35%, rgba(47, 91, 211, 0.07) 50%, transparent 65%, transparent 100%); background-size: 300% 100%; animation: wa-shimmer 1.8s linear infinite; }
.wa-report.is-pending .wa-report-sub { color: var(--accent-ink); }
.wa-report.is-pending:hover { transform: none; box-shadow: none; border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .wa-report.is-pending::after { animation: none; } }
.wa-report.is-pending .mk-bar { animation: mk-bar-grow 1.2s var(--ease-spring) infinite alternate; }
.wa-report.is-pending .mk-bar:nth-of-type(2) { animation-delay: 0.15s; } .wa-report.is-pending .mk-bar:nth-of-type(3) { animation-delay: 0.3s; }

/* citation in history: the rule changed or went offline (A5); version tag and hint bar in the panel (A7) */
.wa-popover-warn { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning-ink); font-size: 12px; line-height: 18px; }
.wa-popover-warn .wa-ico { flex: none; margin-top: 2px; }
.wa-popover-foot--ask { cursor: pointer; }
.wa-verwrap { position: relative; display: inline-flex; }
.wa-tag--sel { gap: 4px; border: 1px solid var(--line-control); background: var(--surface); cursor: pointer; font: inherit; font-size: 12px; }
.wa-vermenu { top: calc(100% + 6px); min-width: 210px; z-index: 10; }
.wa-vermenu .wa-menu-item { justify-content: space-between; }
.wa-vermenu .wa-menu-item.is-on { font-weight: 600; }
.wa-vertag { padding: 0 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-3); font-size: 11px; line-height: 18px; font-weight: 500; }
.wa-vertag--now { background: var(--accent-soft); color: var(--accent-ink); }
.wa-verhint { display: flex; align-items: center; gap: 8px; margin: 12px 24px 0; padding: 8px 8px 8px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-2); font-size: 12px; line-height: 18px; animation: wa-fade-up var(--dur-3) var(--ease-out) both; }
.wa-verhint .wa-btn--link { margin-left: auto; height: auto; font-size: 12px; }

/* answer actions: thumbs-down reasons (A4), version pager (C3), handoff draft (C4) */
.wa-downwrap { position: relative; display: inline-flex; }
.wa-downmenu { min-width: 160px; z-index: 20; animation: wa-fade-up var(--dur-2) var(--ease-out) both; }
.wa-downmenu-h { padding: 6px 10px 4px; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.wa-pager { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; color: var(--ink-3); font-size: 12px; }
.wa-pager .wa-iconbtn:disabled { opacity: 0.35; cursor: default; }
.wa-action--draft { background: var(--surface-sunken); }

/* failure toast (B12): one at a time, 4 s, stays while hovered */
.wa-failtoast { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 6; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 11px; border-radius: var(--radius-full); background: var(--surface); box-shadow: 0 0 0 1px var(--line-subtle), 0 8px 24px rgba(22, 26, 33, 0.12); color: var(--ink); font-size: 13px; white-space: nowrap; transform: translateX(-50%); animation: wa-toast-up 260ms var(--ease-out) both; }
@keyframes wa-toast-up { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.wa-failtoast-btn { height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wa-failtoast-btn:hover { background: var(--accent-soft); }
.wa-failtoast--dlg { position: relative; left: auto; bottom: auto; width: fit-content; margin: 14px auto 0; transform: none; animation-name: wa-toast-up-s; }
@keyframes wa-toast-up-s { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* settings (B25, B26, B28) */
.wa-setnote { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning-ink); font-size: 12px; line-height: 18px; }
.wa-setnote .wa-btn--link { margin-left: auto; height: auto; font-size: 12px; white-space: nowrap; }
.wa-pf-fail { width: 100%; margin: 16px 0 0; }
.wa-upd-state.is-fail { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .wa-side-run { animation: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  .wa-side-unread.is-pop, .wa-side-unread.is-pop::after { animation: none; }
  .wa-otp.is-error, .wa-send--add, .wa-addq, .wa-user--add, .wa-failtoast, .wa-status-net,
  .wa-unwrap-box, .wa-unwrap-box .mk-lid, .wa-unwrap-star, .wa-unwrap-face,
  .wa-unwrap-box, .wa-unwrap-star { display: none; }
}
.wa-offline-mark .wa-mark.wa-mark--lg { width: 56px; height: 56px; border-radius: 15px; }
.wa-user.is-clamped { max-height: calc(8lh + 18px); }
.wa-panel-meta:has(.wa-verwrap) { position: relative; z-index: 5; }
.wa-sidebar.is-dim .wa-side-inner { opacity: 0.4; pointer-events: none; filter: saturate(0); }
/* action marks whose tool breaks out of the tile (comment on 动效规范: mascot first, tool at the bottom-right corner) */
.wa-action-ico:has(.mk-has-out) { overflow: visible; }
.wa-action-ico .mk-has-out { overflow: visible; }
.wa-action:has(.mk-has-out) .wa-action-ico { margin-right: 3px; }


/* ===== 吉祥物系统：情绪 × 动作 × 道具（见 README › 标志 › 吉祥物规范） ===== */
:root { --mk-react: 600ms; --mk-loop: 1.6s; --mk-slow: 3.2s; --mk-blink: 5s; }
.wa-mark:has(.mk-has-out) { overflow: visible; }
.wa-mark--muted { --mark: var(--ink-3); }
.wa-mark .mk-eye, .wa-mark .mk-mouth, .wa-mark .mk-eyes, .wa-mark .mk-brow, .wa-mark .mk-prop, .wa-mark .mk-yawn, .wa-mark .mk-sweat, .wa-mark .mk-spark { transform-box: fill-box; transform-origin: center; }
.wa-mark svg { transform-origin: 50% 58%; }
/* ① 情绪：活标志一个 SVG 里放着全部脸，m-<情绪> 只显示一张；专注用平常的脸，靠动作区分 */
.wa-mark--live .mf { display: none; }
.wa-mark--live.m-calm .mf-calm, .wa-mark--live.m-focus .mf-calm, .wa-mark--live.m-happy .mf-happy, .wa-mark--live.m-puzzled .mf-puzzled,
.wa-mark--live.m-sorry .mf-sorry, .wa-mark--live.m-sleepy .mf-sleepy, .wa-mark--live.m-nervous .mf-nervous, .wa-mark--live.m-delight .mf-delight,
.wa-mark--live.m-shy .mf-shy { display: inline; }
.wa-mark--live { transition: background-color var(--dur-4) linear; }
.wa-mark--live.m-sleepy { --mark: var(--ink-3); }
/* ② 动作：6 个，a-<动作> */
.a-blink .mk-eye { animation: mk-blink var(--mk-blink) linear 1s infinite; }
.a-wake .mk-eyes { animation: mk-wake var(--mk-react) var(--ease-out) 0.2s both; }
.a-wake .mk-eye { animation: mk-blink var(--mk-blink) linear 1.6s infinite; }
.a-look .mk-eyes { animation: mk-ponder var(--mk-loop) var(--ease-inout) infinite; }
.a-look svg { animation: mk-bob var(--mk-loop) var(--ease-inout) infinite; }
.m-calm.a-look .mk-eyes { animation: mk-peek var(--mk-slow) var(--ease-inout) infinite; }
.m-calm.a-look svg { animation: none; }
.a-breathe svg { animation: mk-breathe var(--mk-slow) var(--ease-inout) infinite; }
.a-tilt svg { animation: mk-tilt var(--mk-slow) var(--ease-inout) infinite; }
.a-tilt .mk-brow { animation: mk-brow var(--mk-slow) var(--ease-inout) infinite; }
.a-shake svg { animation: mk-shake var(--mk-react) var(--ease-out) 0.2s both; }
.a-hop svg { animation: mk-hop var(--mk-react) var(--ease-spring) both; }
/* 惊喜：隔一会儿蹦两下、星星眼往下瞄 */
.m-delight.a-hop svg { animation: mk-gift-hop var(--mk-slow) var(--ease-spring) 1s infinite; }
.m-delight .mf-delight .mk-eyes { animation: mk-star-glance var(--mk-slow) var(--ease-inout) 1s infinite; }
/* 24 px 和 18 px 的标志：同样的动作位移加倍 */
.wa-mark--sm.a-look .mk-eyes, .wa-mark--xs.a-look .mk-eyes { animation-name: mk-ponder-sm; }
.wa-mark--sm.m-calm.a-look .mk-eyes, .wa-mark--xs.m-calm.a-look .mk-eyes { animation-name: mk-peek-sm; }
.wa-mark--sm.a-look svg, .wa-mark--xs.a-look svg { animation-name: mk-bob-sm; }
/* ③ 符号（右上角，跟着脸）：汗滴、星光；Zz 是标志外面的 .wa-zz */
.mk-sweat { animation: mk-sweat var(--mk-loop) var(--ease-in) infinite; }
.mk-spark { animation: mk-spark var(--mk-loop) var(--ease-inout) infinite; }
/* ④ 道具（右下角，探出方块），一次最多一个，小动作统一用慢循环 */
.mk-prop, .mk-prop * { transform-box: fill-box; }
.mk-prop { transform-origin: 50% 0; }
/* A prop's own rotation or offset sits on a wrapper <g>; the animated element never carries a transform attribute, so CSS animation cannot wipe it. */
.mk-lock { animation: mk-sway var(--mk-slow) var(--ease-inout) infinite; }
.mk-lock.is-open { animation: none; }
.mk-lock.is-open .mk-shackle { transform-box: fill-box; transform-origin: 100% 100%; animation: mk-unlatch var(--mk-react) var(--ease-spring) 0.2s both; }
.mk-glass { transform-origin: 50% 50%; animation: mk-flip var(--mk-slow) var(--ease-inout) infinite; }
.mk-yawn { animation: mk-yawn var(--mk-slow) var(--ease-inout) infinite; }
.mk-plane { transform-origin: 0 100%; animation: mk-fly var(--mk-slow) var(--ease-out) infinite; }
.mk-hand { transform-origin: 30% 95%; animation: mk-wave var(--mk-loop) var(--ease-inout) infinite; }
.mk-pencil { transform-origin: 50% 100%; animation: mk-scribble var(--mk-slow) var(--ease-inout) infinite; }
@keyframes mk-scribble { 0%, 55%, 100% { transform: none; } 62% { transform: translate(-1px, 1px) rotate(-4deg); } 69% { transform: translate(1px, 0) rotate(3deg); } 76% { transform: translate(-1px, 1px) rotate(-3deg); } 83% { transform: none; } }
.mk-steam path { animation: mk-steam var(--mk-slow) var(--ease-out) infinite; }
.mk-steam path + path { animation-delay: 0.6s; }
.mk-env { transform-origin: 50% 100%; animation: mk-nudge var(--mk-slow) var(--ease-spring) infinite; }
.mk-chomp { transform-origin: 50% 0; animation: mk-chomp var(--mk-loop) var(--ease-inout) infinite; }
@keyframes mk-sweat { 0%, 30% { transform: translateY(-2px); opacity: 0; } 45% { opacity: 1; } 85% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
@keyframes mk-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes mk-unlatch { from { transform: translateY(2px); } to { transform: translateY(-1px) rotate(32deg); } }
@keyframes mk-flip { 0%, 55% { transform: rotate(0); } 70%, 100% { transform: rotate(180deg); } }
@keyframes mk-yawn { 0%, 20%, 100% { transform: scale(0.8, 0.6); } 40%, 60% { transform: scale(1, 1.2); } }
@keyframes mk-fly { 0%, 10% { transform: none; opacity: 1; } 50% { transform: translate(10px, -10px) rotate(-8deg); opacity: 0; } 60% { transform: translate(-6px, 6px); opacity: 0; } 80%, 100% { transform: none; opacity: 1; } }
@keyframes mk-wave { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(12deg); } }
@keyframes mk-chew { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@keyframes mk-steam { 0% { opacity: 0; transform: translateY(2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-3px); } }
@keyframes mk-nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-2px) rotate(-6deg); } 86% { transform: rotate(4deg); } }
@keyframes mk-chomp { 0%, 70%, 100% { transform: scaleY(1); } 80% { transform: scaleY(0.25); } 90% { transform: scaleY(1.05); } }
.wa-action-ico:has(.mk-has-out) { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .wa-mark svg, .wa-mark .mk-eyes, .wa-mark .mk-eye, .wa-mark .mk-brow, .wa-mark .mk-prop, .wa-mark .mk-prop *, .wa-mark .mk-yawn, .wa-mark .mk-sweat, .wa-mark .mk-spark, .wa-mark .mk-chomp,
  .wa-action-ico .mk-prop, .wa-action-ico .mk-prop * { animation: none !important; }
}

/* upload failed: a small red retry badge at the icon's bottom-right corner, breaking out of it (replaces the red ring) */
.wa-ring-retry { position: absolute; inset: auto -5px -5px auto; width: 16px; height: 16px; padding: 0; border: 0; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; background: var(--danger); color: var(--on-accent); box-shadow: 0 0 0 2px var(--surface); cursor: pointer; animation: wa-pop var(--dur-3) var(--ease-spring) both; transition: transform var(--dur-1) var(--ease-out); }
.wa-ring-retry:hover { transform: rotate(-90deg) scale(1.1); }
.wa-ring-retry .wa-ico { width: 10px; height: 10px; stroke-width: 2.2; }


/* thumbs-down: a small card with the mascot asking, reasons as chips that pop in one by one; then a thank-you */
.wa-downcard { position: absolute; left: -8px; top: calc(100% + 8px); z-index: 20; width: 300px; padding: 12px 14px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.05), 0 12px 32px rgba(22, 26, 33, 0.12); transform-origin: 18px 0; animation: wa-downcard-in 260ms var(--ease-spring) both; }
@keyframes wa-downcard-in { from { opacity: 0; transform: translateY(-4px) scale(0.94); } to { opacity: 1; transform: none; } }
.wa-downcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wa-downcard-t { display: flex; flex-direction: column; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.wa-downcard-t b { font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 600; }
.wa-downchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-downchip { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; opacity: 0; animation: wa-chip-pop 320ms var(--ease-spring) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); transition: background var(--dur-1) linear, color var(--dur-1) linear, border-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out); }
.wa-downchip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); transform: translateY(-1px); }
.wa-downchip:active { transform: scale(0.95); }
@keyframes wa-chip-pop { from { opacity: 0; transform: translateY(6px) scale(0.85); } to { opacity: 1; transform: none; } }
.wa-downcard--thanks { display: flex; align-items: center; gap: 10px; width: auto; white-space: nowrap; padding: 10px 14px; animation: wa-downcard-in 260ms var(--ease-spring) both, wa-fade-out 300ms var(--ease-in) 1.3s both; }
@keyframes wa-fade-out { to { opacity: 0; transform: translateY(-4px); } }
.wa-actions .wa-downwrap .wa-mark--sm { flex: none; }
@media (prefers-reduced-motion: reduce) { .wa-downcard, .wa-downchip, .wa-downcard--thanks { animation: none !important; opacity: 1; } }

/* marks with a prop in small headers keep the prop visible */
.wa-mark--prop { overflow: visible; }
.wa-mark--prop svg { overflow: visible; }
.wa-toast-lead-badge { overflow: visible; right: -6px; bottom: -6px; }
.wa-toast-lead-badge svg { overflow: visible; }

.wa-tag--closed { background: var(--surface-sunken); color: var(--ink-2); gap: 4px; }
.mk-check { transform-origin: 50% 50%; animation: mk-stamp var(--mk-react) var(--ease-spring) 0.3s both; }
@keyframes mk-stamp { 0% { transform: scale(1.6) rotate(-12deg); opacity: 0; } 60% { transform: scale(0.92); opacity: 1; } 100% { transform: none; } }
/* icons inside capsules are circles: concentric with the pill's round ends. Standalone marks stay rounded squares. */
.wa-action-ico { border-radius: var(--radius-full); }

/* profile failed to load (chosen: field names stay, values become grey bars, one quiet line below to retry) */
.wa-kvlist--ghost .wa-kv { align-items: center; }
.wa-ghost-v { display: inline-block; height: 10px; border-radius: var(--radius-full); background: var(--fill-hover); }
.wa-pf-inline { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.wa-pf-inline .wa-btn--link { height: auto; font-size: 13px; }

/* kicked out: option B two screens, option C blurred card */
.wa-kick-scene { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.wa-kick-pc { display: flex; flex-direction: column; align-items: center; }
.wa-kick-screen { display: flex; align-items: center; justify-content: center; width: 132px; height: 88px; border-radius: 10px; background: var(--surface-sunken); box-shadow: inset 0 0 0 3px var(--line); }
.wa-kick-pc.is-on .wa-kick-screen { background: var(--accent-soft); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent); }
.wa-kick-stand { display: block; width: 36px; height: 10px; margin-top: 4px; border-radius: 0 0 6px 6px; background: var(--line); }
.wa-kick-pc.is-on .wa-kick-stand { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.wa-kick-cap { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.wa-kick-m1.a-hop svg { animation: mk-gift-hop var(--mk-slow) var(--ease-spring) 0.6s infinite; }
.wa-kick-hop { display: flex; gap: 6px; margin-top: -28px; }
.wa-kick-hop i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.25; animation: wa-kick-dot 1.6s var(--ease-inout) infinite; }
.wa-kick-hop i:nth-child(2) { animation-delay: 0.2s; } .wa-kick-hop i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wa-kick-dot { 0%, 100% { opacity: 0.2; transform: none; } 30% { opacity: 1; transform: translateX(-3px); } }
.wa-lockout { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg-app) 55%, transparent); backdrop-filter: blur(8px) saturate(0.7); border-radius: inherit; animation: wa-fade var(--dur-3) linear both; }
.wa-lockout-card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 360px; padding: 32px 28px 20px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.06), 0 24px 60px rgba(22, 26, 33, 0.18); text-align: center; animation: wa-downcard-in 320ms var(--ease-spring) both; }
.wa-lockout-t { margin-top: 8px; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-lockout-d { margin-bottom: 10px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .wa-kick-hop i, .wa-lockout, .wa-lockout-card { animation: none !important; } }

/* this computer's screen is empty: only the faint outline of where the mascot was */
.wa-kick-ghost { width: 40px; height: 40px; fill: var(--line); opacity: 0.7; animation: wa-ghost-fade var(--mk-slow) var(--ease-inout) infinite; }
@keyframes wa-ghost-fade { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .wa-kick-ghost { animation: none; } }

.wa-kick-nap { position: relative; display: inline-flex; }
.wa-kick-nap .wa-zz { left: 34px; top: -10px; }
.mk-key { transform-origin: 50% 100%; animation: mk-sway var(--mk-slow) var(--ease-inout) infinite; }
.mk-badge { transform-origin: 50% 0; animation: mk-sway var(--mk-slow) var(--ease-inout) infinite; }
.wa-kick-nap .wa-mark { width: 40px; height: 40px; border-radius: 11px; }

/* long question: the bubble fades out at the 8th line, a pill sits on its bottom edge */
.wa-userwrap { position: relative; align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; max-width: 78%; }
.wa-userwrap .wa-user { max-width: 100%; align-self: auto; }
.wa-userwrap.is-clamped .wa-user { display: block; overflow: hidden; max-height: calc(8lh + 9px); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 2lh), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 2lh), transparent 100%); }
.wa-user-more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: -16px auto 0; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.05), 0 4px 12px rgba(22, 26, 33, 0.08); color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) linear; }
.wa-user-more:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(22, 26, 33, 0.05), 0 8px 18px rgba(22, 26, 33, 0.12); }
.wa-user-more-n { color: var(--ink-3); font-weight: 400; }
.wa-user-more-ico { display: inline-flex; color: var(--ink-3); transition: transform var(--dur-3) var(--ease-spring); }
.wa-user-more.is-open { margin-top: 8px; }
.wa-user-more.is-open .wa-user-more-ico { transform: rotate(180deg); }
.wa-user-more:hover .wa-user-more-ico { transform: translateY(1px); }
.wa-user-more.is-open:hover .wa-user-more-ico { transform: rotate(180deg) translateY(1px); }

/* status line: working icon (generated by workmark.py, do not hand-edit). 想 = wa-work--flip (2 x 2 dots flip about their diagonals, 4 flips a loop); 写 = wa-work--orbit (3 dots turn on a ring that tips open and shut). Not the mascot. */
.wa-work { display: block; width: 16px; height: 16px; margin: -1px; color: var(--accent); }
.wa-work svg { display: block; width: 16px; height: 16px; overflow: visible; }
.wa-work circle { fill: currentColor; transform-box: view-box; transform-origin: 8px 8px; animation-timing-function: linear; animation-iteration-count: infinite; }
.wa-work--flip circle { animation-duration: 2.5s; }
.wa-work--orbit circle { animation-duration: 3.6s; }
.wa-work--flip .d0 { animation-name: wa-wf0; }
@keyframes wa-wf0 { 0.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 1.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 2.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 3.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 4.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 5.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 6.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 7.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 8.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 9.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 10.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 11.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 12.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 13.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 14.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 15.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 16.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 17.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 18.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 19.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 20.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 21.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 22.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 23.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 24.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 25.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 26.0% { transform: translate(-3.38px, -3.38px) scale(0.993); } 27.0% { transform: translate(-3.29px, -3.29px) scale(0.976); } 28.0% { transform: translate(-3.09px, -3.09px) scale(0.949); } 29.0% { transform: translate(-2.74px, -2.74px) scale(0.919); } 30.0% { transform: translate(-2.22px, -2.22px) scale(0.889); } 31.0% { transform: translate(-1.54px, -1.54px) scale(0.864); } 32.0% { transform: translate(-0.73px, -0.73px) scale(0.848); } 33.0% { transform: translate(0.14px, 0.14px) scale(0.844); } 34.0% { transform: translate(1.00px, 1.00px) scale(0.852); } 35.0% { transform: translate(1.78px, 1.78px) scale(0.871); } 36.0% { transform: translate(2.42px, 2.42px) scale(0.899); } 37.0% { transform: translate(2.89px, 2.89px) scale(0.930); } 38.0% { transform: translate(3.19px, 3.19px) scale(0.961); } 39.0% { transform: translate(3.34px, 3.34px) scale(0.985); } 40.0% { transform: translate(3.40px, 3.40px) scale(0.999); } 41.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 42.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 43.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 44.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 45.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 46.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 47.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 48.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 49.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 50.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 51.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 52.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 53.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 54.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 55.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 56.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 57.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 58.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 59.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 60.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 61.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 62.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 63.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 64.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 65.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 66.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 67.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 68.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 69.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 70.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 71.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 72.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 73.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 74.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 75.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 76.0% { transform: translate(3.42px, 3.42px) scale(1.007); } 77.0% { transform: translate(3.46px, 3.46px) scale(1.026); } 78.0% { transform: translate(3.44px, 3.44px) scale(1.057); } 79.0% { transform: translate(3.28px, 3.28px) scale(1.097); } 80.0% { transform: translate(2.86px, 2.86px) scale(1.143); } 81.0% { transform: translate(2.12px, 2.12px) scale(1.187); } 82.0% { transform: translate(1.05px, 1.05px) scale(1.218); } 83.0% { transform: translate(-0.20px, -0.20px) scale(1.227); } 84.0% { transform: translate(-1.42px, -1.42px) scale(1.210); } 85.0% { transform: translate(-2.40px, -2.40px) scale(1.173); } 86.0% { transform: translate(-3.04px, -3.04px) scale(1.127); } 87.0% { transform: translate(-3.36px, -3.36px) scale(1.081); } 88.0% { transform: translate(-3.46px, -3.46px) scale(1.042); } 89.0% { transform: translate(-3.44px, -3.44px) scale(1.015); } 90.0% { transform: translate(-3.40px, -3.40px) scale(1.001); } 91.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 92.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 93.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 94.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 95.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 96.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 97.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 98.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 99.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 100.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } }
.wa-work--flip .d1 { animation-name: wa-wf1; }
@keyframes wa-wf1 { 0.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 1.0% { transform: translate(3.38px, -3.38px) scale(0.993); } 2.0% { transform: translate(3.29px, -3.29px) scale(0.976); } 3.0% { transform: translate(3.09px, -3.09px) scale(0.949); } 4.0% { transform: translate(2.74px, -2.74px) scale(0.919); } 5.0% { transform: translate(2.22px, -2.22px) scale(0.889); } 6.0% { transform: translate(1.54px, -1.54px) scale(0.864); } 7.0% { transform: translate(0.73px, -0.73px) scale(0.848); } 8.0% { transform: translate(-0.14px, 0.14px) scale(0.844); } 9.0% { transform: translate(-1.00px, 1.00px) scale(0.852); } 10.0% { transform: translate(-1.78px, 1.78px) scale(0.871); } 11.0% { transform: translate(-2.42px, 2.42px) scale(0.899); } 12.0% { transform: translate(-2.89px, 2.89px) scale(0.930); } 13.0% { transform: translate(-3.19px, 3.19px) scale(0.961); } 14.0% { transform: translate(-3.34px, 3.34px) scale(0.985); } 15.0% { transform: translate(-3.40px, 3.40px) scale(0.999); } 16.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 17.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 18.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 19.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 20.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 21.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 22.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 23.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 24.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 25.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 26.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 27.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 28.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 29.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 30.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 31.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 32.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 33.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 34.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 35.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 36.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 37.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 38.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 39.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 40.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 41.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 42.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 43.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 44.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 45.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 46.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 47.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 48.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 49.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 50.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 51.0% { transform: translate(-3.42px, 3.42px) scale(1.007); } 52.0% { transform: translate(-3.46px, 3.46px) scale(1.026); } 53.0% { transform: translate(-3.44px, 3.44px) scale(1.057); } 54.0% { transform: translate(-3.28px, 3.28px) scale(1.097); } 55.0% { transform: translate(-2.86px, 2.86px) scale(1.143); } 56.0% { transform: translate(-2.12px, 2.12px) scale(1.187); } 57.0% { transform: translate(-1.05px, 1.05px) scale(1.218); } 58.0% { transform: translate(0.20px, -0.20px) scale(1.227); } 59.0% { transform: translate(1.42px, -1.42px) scale(1.210); } 60.0% { transform: translate(2.40px, -2.40px) scale(1.173); } 61.0% { transform: translate(3.04px, -3.04px) scale(1.127); } 62.0% { transform: translate(3.36px, -3.36px) scale(1.081); } 63.0% { transform: translate(3.46px, -3.46px) scale(1.042); } 64.0% { transform: translate(3.44px, -3.44px) scale(1.015); } 65.0% { transform: translate(3.40px, -3.40px) scale(1.001); } 66.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 67.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 68.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 69.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 70.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 71.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 72.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 73.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 74.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 75.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 76.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 77.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 78.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 79.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 80.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 81.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 82.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 83.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 84.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 85.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 86.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 87.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 88.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 89.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 90.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 91.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 92.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 93.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 94.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 95.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 96.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 97.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 98.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 99.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 100.0% { transform: translate(3.40px, -3.40px) scale(1.000); } }
.wa-work--flip .d2 { animation-name: wa-wf2; }
@keyframes wa-wf2 { 0.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 1.0% { transform: translate(-3.42px, 3.42px) scale(1.007); } 2.0% { transform: translate(-3.46px, 3.46px) scale(1.026); } 3.0% { transform: translate(-3.44px, 3.44px) scale(1.057); } 4.0% { transform: translate(-3.28px, 3.28px) scale(1.097); } 5.0% { transform: translate(-2.86px, 2.86px) scale(1.143); } 6.0% { transform: translate(-2.12px, 2.12px) scale(1.187); } 7.0% { transform: translate(-1.05px, 1.05px) scale(1.218); } 8.0% { transform: translate(0.20px, -0.20px) scale(1.227); } 9.0% { transform: translate(1.42px, -1.42px) scale(1.210); } 10.0% { transform: translate(2.40px, -2.40px) scale(1.173); } 11.0% { transform: translate(3.04px, -3.04px) scale(1.127); } 12.0% { transform: translate(3.36px, -3.36px) scale(1.081); } 13.0% { transform: translate(3.46px, -3.46px) scale(1.042); } 14.0% { transform: translate(3.44px, -3.44px) scale(1.015); } 15.0% { transform: translate(3.40px, -3.40px) scale(1.001); } 16.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 17.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 18.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 19.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 20.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 21.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 22.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 23.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 24.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 25.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 26.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 27.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 28.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 29.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 30.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 31.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 32.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 33.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 34.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 35.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 36.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 37.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 38.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 39.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 40.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 41.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 42.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 43.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 44.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 45.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 46.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 47.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 48.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 49.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 50.0% { transform: translate(3.40px, -3.40px) scale(1.000); } 51.0% { transform: translate(3.38px, -3.38px) scale(0.993); } 52.0% { transform: translate(3.29px, -3.29px) scale(0.976); } 53.0% { transform: translate(3.09px, -3.09px) scale(0.949); } 54.0% { transform: translate(2.74px, -2.74px) scale(0.919); } 55.0% { transform: translate(2.22px, -2.22px) scale(0.889); } 56.0% { transform: translate(1.54px, -1.54px) scale(0.864); } 57.0% { transform: translate(0.73px, -0.73px) scale(0.848); } 58.0% { transform: translate(-0.14px, 0.14px) scale(0.844); } 59.0% { transform: translate(-1.00px, 1.00px) scale(0.852); } 60.0% { transform: translate(-1.78px, 1.78px) scale(0.871); } 61.0% { transform: translate(-2.42px, 2.42px) scale(0.899); } 62.0% { transform: translate(-2.89px, 2.89px) scale(0.930); } 63.0% { transform: translate(-3.19px, 3.19px) scale(0.961); } 64.0% { transform: translate(-3.34px, 3.34px) scale(0.985); } 65.0% { transform: translate(-3.40px, 3.40px) scale(0.999); } 66.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 67.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 68.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 69.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 70.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 71.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 72.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 73.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 74.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 75.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 76.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 77.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 78.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 79.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 80.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 81.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 82.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 83.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 84.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 85.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 86.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 87.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 88.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 89.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 90.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 91.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 92.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 93.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 94.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 95.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 96.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 97.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 98.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 99.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } 100.0% { transform: translate(-3.40px, 3.40px) scale(1.000); } }
.wa-work--flip .d3 { animation-name: wa-wf3; }
@keyframes wa-wf3 { 0.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 1.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 2.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 3.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 4.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 5.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 6.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 7.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 8.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 9.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 10.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 11.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 12.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 13.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 14.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 15.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 16.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 17.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 18.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 19.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 20.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 21.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 22.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 23.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 24.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 25.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 26.0% { transform: translate(3.42px, 3.42px) scale(1.007); } 27.0% { transform: translate(3.46px, 3.46px) scale(1.026); } 28.0% { transform: translate(3.44px, 3.44px) scale(1.057); } 29.0% { transform: translate(3.28px, 3.28px) scale(1.097); } 30.0% { transform: translate(2.86px, 2.86px) scale(1.143); } 31.0% { transform: translate(2.12px, 2.12px) scale(1.187); } 32.0% { transform: translate(1.05px, 1.05px) scale(1.218); } 33.0% { transform: translate(-0.20px, -0.20px) scale(1.227); } 34.0% { transform: translate(-1.42px, -1.42px) scale(1.210); } 35.0% { transform: translate(-2.40px, -2.40px) scale(1.173); } 36.0% { transform: translate(-3.04px, -3.04px) scale(1.127); } 37.0% { transform: translate(-3.36px, -3.36px) scale(1.081); } 38.0% { transform: translate(-3.46px, -3.46px) scale(1.042); } 39.0% { transform: translate(-3.44px, -3.44px) scale(1.015); } 40.0% { transform: translate(-3.40px, -3.40px) scale(1.001); } 41.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 42.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 43.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 44.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 45.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 46.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 47.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 48.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 49.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 50.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 51.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 52.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 53.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 54.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 55.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 56.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 57.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 58.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 59.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 60.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 61.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 62.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 63.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 64.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 65.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 66.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 67.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 68.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 69.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 70.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 71.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 72.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 73.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 74.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 75.0% { transform: translate(-3.40px, -3.40px) scale(1.000); } 76.0% { transform: translate(-3.38px, -3.38px) scale(0.993); } 77.0% { transform: translate(-3.29px, -3.29px) scale(0.976); } 78.0% { transform: translate(-3.09px, -3.09px) scale(0.949); } 79.0% { transform: translate(-2.74px, -2.74px) scale(0.919); } 80.0% { transform: translate(-2.22px, -2.22px) scale(0.889); } 81.0% { transform: translate(-1.54px, -1.54px) scale(0.864); } 82.0% { transform: translate(-0.73px, -0.73px) scale(0.848); } 83.0% { transform: translate(0.14px, 0.14px) scale(0.844); } 84.0% { transform: translate(1.00px, 1.00px) scale(0.852); } 85.0% { transform: translate(1.78px, 1.78px) scale(0.871); } 86.0% { transform: translate(2.42px, 2.42px) scale(0.899); } 87.0% { transform: translate(2.89px, 2.89px) scale(0.930); } 88.0% { transform: translate(3.19px, 3.19px) scale(0.961); } 89.0% { transform: translate(3.34px, 3.34px) scale(0.985); } 90.0% { transform: translate(3.40px, 3.40px) scale(0.999); } 91.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 92.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 93.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 94.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 95.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 96.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 97.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 98.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 99.0% { transform: translate(3.40px, 3.40px) scale(1.000); } 100.0% { transform: translate(3.40px, 3.40px) scale(1.000); } }
.wa-work--orbit .d0 { animation-name: wa-wo0; }
@keyframes wa-wo0 { 0.0% { transform: translate(5.00px, 0.00px) scale(1.000); } 0.9% { transform: translate(5.05px, -0.00px) scale(1.011); } 1.8% { transform: translate(5.08px, -0.00px) scale(1.022); } 2.7% { transform: translate(5.09px, -0.00px) scale(1.034); } 3.6% { transform: translate(5.09px, -0.00px) scale(1.046); } 4.5% { transform: translate(5.07px, -0.01px) scale(1.057); } 5.5% { transform: translate(5.03px, -0.02px) scale(1.069); } 6.4% { transform: translate(4.98px, -0.05px) scale(1.081); } 7.3% { transform: translate(4.90px, -0.10px) scale(1.093); } 8.2% { transform: translate(4.81px, -0.17px) scale(1.104); } 9.1% { transform: translate(4.69px, -0.28px) scale(1.115); } 10.0% { transform: translate(4.56px, -0.43px) scale(1.126); } 10.9% { transform: translate(4.40px, -0.62px) scale(1.136); } 11.8% { transform: translate(4.22px, -0.87px) scale(1.145); } 12.7% { transform: translate(4.02px, -1.17px) scale(1.152); } 13.6% { transform: translate(3.79px, -1.51px) scale(1.158); } 14.5% { transform: translate(3.54px, -1.90px) scale(1.161); } 15.5% { transform: translate(3.28px, -2.31px) scale(1.162); } 16.4% { transform: translate(2.99px, -2.73px) scale(1.160); } 17.3% { transform: translate(2.69px, -3.14px) scale(1.155); } 18.2% { transform: translate(2.38px, -3.52px) scale(1.148); } 19.1% { transform: translate(2.07px, -3.87px) scale(1.140); } 20.0% { transform: translate(1.75px, -4.16px) scale(1.131); } 20.9% { transform: translate(1.43px, -4.40px) scale(1.122); } 21.8% { transform: translate(1.11px, -4.59px) scale(1.114); } 22.7% { transform: translate(0.79px, -4.72px) scale(1.107); } 23.6% { transform: translate(0.47px, -4.81px) scale(1.102); } 24.5% { transform: translate(0.16px, -4.85px) scale(1.100); } 25.5% { transform: translate(-0.16px, -4.85px) scale(1.100); } 26.4% { transform: translate(-0.47px, -4.81px) scale(1.102); } 27.3% { transform: translate(-0.79px, -4.72px) scale(1.107); } 28.2% { transform: translate(-1.11px, -4.59px) scale(1.114); } 29.1% { transform: translate(-1.43px, -4.40px) scale(1.122); } 30.0% { transform: translate(-1.75px, -4.16px) scale(1.131); } 30.9% { transform: translate(-2.07px, -3.87px) scale(1.140); } 31.8% { transform: translate(-2.38px, -3.52px) scale(1.148); } 32.7% { transform: translate(-2.69px, -3.14px) scale(1.155); } 33.6% { transform: translate(-2.99px, -2.73px) scale(1.160); } 34.5% { transform: translate(-3.28px, -2.31px) scale(1.162); } 35.5% { transform: translate(-3.54px, -1.90px) scale(1.161); } 36.4% { transform: translate(-3.79px, -1.51px) scale(1.158); } 37.3% { transform: translate(-4.02px, -1.17px) scale(1.152); } 38.2% { transform: translate(-4.22px, -0.87px) scale(1.145); } 39.1% { transform: translate(-4.40px, -0.62px) scale(1.136); } 40.0% { transform: translate(-4.56px, -0.43px) scale(1.126); } 40.9% { transform: translate(-4.69px, -0.28px) scale(1.115); } 41.8% { transform: translate(-4.81px, -0.17px) scale(1.104); } 42.7% { transform: translate(-4.90px, -0.10px) scale(1.093); } 43.6% { transform: translate(-4.98px, -0.05px) scale(1.081); } 44.5% { transform: translate(-5.03px, -0.02px) scale(1.069); } 45.5% { transform: translate(-5.07px, -0.01px) scale(1.057); } 46.4% { transform: translate(-5.09px, -0.00px) scale(1.046); } 47.3% { transform: translate(-5.09px, -0.00px) scale(1.034); } 48.2% { transform: translate(-5.08px, -0.00px) scale(1.022); } 49.1% { transform: translate(-5.05px, -0.00px) scale(1.011); } 50.0% { transform: translate(-5.00px, -0.00px) scale(1.000); } 50.9% { transform: translate(-4.94px, 0.00px) scale(0.989); } 51.8% { transform: translate(-4.86px, 0.00px) scale(0.979); } 52.7% { transform: translate(-4.77px, 0.00px) scale(0.968); } 53.6% { transform: translate(-4.67px, 0.00px) scale(0.958); } 54.5% { transform: translate(-4.55px, 0.01px) scale(0.949); } 55.5% { transform: translate(-4.42px, 0.02px) scale(0.939); } 56.4% { transform: translate(-4.28px, 0.04px) scale(0.930); } 57.3% { transform: translate(-4.14px, 0.08px) scale(0.922); } 58.2% { transform: translate(-3.98px, 0.14px) scale(0.914); } 59.1% { transform: translate(-3.81px, 0.23px) scale(0.906); } 60.0% { transform: translate(-3.64px, 0.34px) scale(0.899); } 60.9% { transform: translate(-3.46px, 0.49px) scale(0.893); } 61.8% { transform: translate(-3.27px, 0.67px) scale(0.888); } 62.7% { transform: translate(-3.08px, 0.89px) scale(0.883); } 63.6% { transform: translate(-2.88px, 1.15px) scale(0.880); } 64.5% { transform: translate(-2.68px, 1.44px) scale(0.878); } 65.5% { transform: translate(-2.48px, 1.74px) scale(0.878); } 66.4% { transform: translate(-2.27px, 2.07px) scale(0.879); } 67.3% { transform: translate(-2.06px, 2.40px) scale(0.882); } 68.2% { transform: translate(-1.84px, 2.72px) scale(0.886); } 69.1% { transform: translate(-1.62px, 3.02px) scale(0.891); } 70.0% { transform: translate(-1.38px, 3.30px) scale(0.896); } 70.9% { transform: translate(-1.15px, 3.54px) scale(0.902); } 71.8% { transform: translate(-0.90px, 3.74px) scale(0.907); } 72.7% { transform: translate(-0.65px, 3.89px) scale(0.912); } 73.6% { transform: translate(-0.39px, 3.99px) scale(0.915); } 74.5% { transform: translate(-0.13px, 4.04px) scale(0.917); } 75.5% { transform: translate(0.13px, 4.04px) scale(0.917); } 76.4% { transform: translate(0.39px, 3.99px) scale(0.915); } 77.3% { transform: translate(0.65px, 3.89px) scale(0.912); } 78.2% { transform: translate(0.90px, 3.74px) scale(0.907); } 79.1% { transform: translate(1.15px, 3.54px) scale(0.902); } 80.0% { transform: translate(1.38px, 3.30px) scale(0.896); } 80.9% { transform: translate(1.62px, 3.02px) scale(0.891); } 81.8% { transform: translate(1.84px, 2.72px) scale(0.886); } 82.7% { transform: translate(2.06px, 2.40px) scale(0.882); } 83.6% { transform: translate(2.27px, 2.07px) scale(0.879); } 84.5% { transform: translate(2.48px, 1.74px) scale(0.878); } 85.5% { transform: translate(2.68px, 1.44px) scale(0.878); } 86.4% { transform: translate(2.88px, 1.15px) scale(0.880); } 87.3% { transform: translate(3.08px, 0.89px) scale(0.883); } 88.2% { transform: translate(3.27px, 0.67px) scale(0.888); } 89.1% { transform: translate(3.46px, 0.49px) scale(0.893); } 90.0% { transform: translate(3.64px, 0.34px) scale(0.899); } 90.9% { transform: translate(3.81px, 0.23px) scale(0.906); } 91.8% { transform: translate(3.98px, 0.14px) scale(0.914); } 92.7% { transform: translate(4.14px, 0.08px) scale(0.922); } 93.6% { transform: translate(4.28px, 0.04px) scale(0.930); } 94.5% { transform: translate(4.42px, 0.02px) scale(0.939); } 95.5% { transform: translate(4.55px, 0.01px) scale(0.949); } 96.4% { transform: translate(4.67px, 0.00px) scale(0.958); } 97.3% { transform: translate(4.77px, 0.00px) scale(0.968); } 98.2% { transform: translate(4.86px, 0.00px) scale(0.979); } 99.1% { transform: translate(4.94px, 0.00px) scale(0.989); } 100.0% { transform: translate(5.00px, 0.00px) scale(1.000); } }
.wa-work--orbit .d1 { animation-name: wa-wo1; }
@keyframes wa-wo1 { 0.0% { transform: translate(-3.00px, 0.00px) scale(1.200); } 0.9% { transform: translate(-3.27px, -0.00px) scale(1.192); } 1.8% { transform: translate(-3.52px, -0.00px) scale(1.183); } 2.7% { transform: translate(-3.76px, -0.00px) scale(1.173); } 3.6% { transform: translate(-3.97px, -0.01px) scale(1.163); } 4.5% { transform: translate(-4.17px, -0.03px) scale(1.153); } 5.5% { transform: translate(-4.35px, -0.05px) scale(1.142); } 6.4% { transform: translate(-4.51px, -0.08px) scale(1.131); } 7.3% { transform: translate(-4.65px, -0.13px) scale(1.120); } 8.2% { transform: translate(-4.77px, -0.18px) scale(1.108); } 9.1% { transform: translate(-4.87px, -0.23px) scale(1.096); } 10.0% { transform: translate(-4.95px, -0.28px) scale(1.084); } 10.9% { transform: translate(-5.01px, -0.33px) scale(1.072); } 11.8% { transform: translate(-5.05px, -0.36px) scale(1.060); } 12.7% { transform: translate(-5.08px, -0.36px) scale(1.047); } 13.6% { transform: translate(-5.08px, -0.34px) scale(1.035); } 14.5% { transform: translate(-5.07px, -0.28px) scale(1.024); } 15.5% { transform: translate(-5.05px, -0.19px) scale(1.013); } 16.4% { transform: translate(-5.01px, -0.05px) scale(1.003); } 17.3% { transform: translate(-4.97px, 0.12px) scale(0.994); } 18.2% { transform: translate(-4.91px, 0.32px) scale(0.987); } 19.1% { transform: translate(-4.85px, 0.54px) scale(0.980); } 20.0% { transform: translate(-4.77px, 0.78px) scale(0.975); } 20.9% { transform: translate(-4.68px, 1.04px) scale(0.971); } 21.8% { transform: translate(-4.59px, 1.29px) scale(0.968); } 22.7% { transform: translate(-4.48px, 1.55px) scale(0.965); } 23.6% { transform: translate(-4.36px, 1.79px) scale(0.962); } 24.5% { transform: translate(-4.22px, 2.01px) scale(0.959); } 25.5% { transform: translate(-4.06px, 2.21px) scale(0.955); } 26.4% { transform: translate(-3.89px, 2.38px) scale(0.949); } 27.3% { transform: translate(-3.71px, 2.51px) scale(0.943); } 28.2% { transform: translate(-3.51px, 2.60px) scale(0.935); } 29.1% { transform: translate(-3.29px, 2.65px) scale(0.927); } 30.0% { transform: translate(-3.07px, 2.64px) scale(0.917); } 30.9% { transform: translate(-2.84px, 2.58px) scale(0.907); } 31.8% { transform: translate(-2.60px, 2.46px) scale(0.896); } 32.7% { transform: translate(-2.36px, 2.31px) scale(0.886); } 33.6% { transform: translate(-2.12px, 2.11px) scale(0.877); } 34.5% { transform: translate(-1.88px, 1.88px) scale(0.868); } 35.5% { transform: translate(-1.64px, 1.64px) scale(0.861); } 36.4% { transform: translate(-1.40px, 1.40px) scale(0.854); } 37.3% { transform: translate(-1.16px, 1.15px) scale(0.849); } 38.2% { transform: translate(-0.92px, 0.93px) scale(0.845); } 39.1% { transform: translate(-0.68px, 0.72px) scale(0.843); } 40.0% { transform: translate(-0.44px, 0.54px) scale(0.841); } 40.9% { transform: translate(-0.20px, 0.39px) scale(0.839); } 41.8% { transform: translate(0.04px, 0.27px) scale(0.839); } 42.7% { transform: translate(0.28px, 0.17px) scale(0.839); } 43.6% { transform: translate(0.52px, 0.10px) scale(0.840); } 44.5% { transform: translate(0.76px, 0.06px) scale(0.841); } 45.5% { transform: translate(0.99px, 0.03px) scale(0.843); } 46.4% { transform: translate(1.23px, 0.01px) scale(0.845); } 47.3% { transform: translate(1.46px, 0.00px) scale(0.847); } 48.2% { transform: translate(1.69px, 0.00px) scale(0.850); } 49.1% { transform: translate(1.92px, 0.00px) scale(0.853); } 50.0% { transform: translate(2.14px, 0.00px) scale(0.857); } 50.9% { transform: translate(2.36px, 0.00px) scale(0.861); } 51.8% { transform: translate(2.58px, 0.00px) scale(0.866); } 52.7% { transform: translate(2.79px, 0.00px) scale(0.871); } 53.6% { transform: translate(3.00px, 0.01px) scale(0.877); } 54.5% { transform: translate(3.19px, 0.02px) scale(0.883); } 55.5% { transform: translate(3.39px, 0.04px) scale(0.889); } 56.4% { transform: translate(3.57px, 0.07px) scale(0.896); } 57.3% { transform: translate(3.75px, 0.10px) scale(0.903); } 58.2% { transform: translate(3.92px, 0.15px) scale(0.911); } 59.1% { transform: translate(4.09px, 0.19px) scale(0.919); } 60.0% { transform: translate(4.24px, 0.24px) scale(0.928); } 60.9% { transform: translate(4.38px, 0.29px) scale(0.937); } 61.8% { transform: translate(4.52px, 0.32px) scale(0.947); } 62.7% { transform: translate(4.64px, 0.33px) scale(0.957); } 63.6% { transform: translate(4.75px, 0.32px) scale(0.967); } 64.5% { transform: translate(4.84px, 0.27px) scale(0.977); } 65.5% { transform: translate(4.92px, 0.18px) scale(0.987); } 66.4% { transform: translate(4.98px, 0.05px) scale(0.997); } 67.3% { transform: translate(5.03px, -0.12px) scale(1.006); } 68.2% { transform: translate(5.05px, -0.33px) scale(1.014); } 69.1% { transform: translate(5.04px, -0.56px) scale(1.020); } 70.0% { transform: translate(5.02px, -0.83px) scale(1.026); } 70.9% { transform: translate(4.97px, -1.10px) scale(1.031); } 71.8% { transform: translate(4.90px, -1.38px) scale(1.034); } 72.7% { transform: translate(4.82px, -1.66px) scale(1.038); } 73.6% { transform: translate(4.71px, -1.93px) scale(1.041); } 74.5% { transform: translate(4.60px, -2.19px) scale(1.045); } 75.5% { transform: translate(4.47px, -2.43px) scale(1.050); } 76.4% { transform: translate(4.33px, -2.65px) scale(1.056); } 77.3% { transform: translate(4.18px, -2.83px) scale(1.064); } 78.2% { transform: translate(4.02px, -2.99px) scale(1.074); } 79.1% { transform: translate(3.86px, -3.10px) scale(1.086); } 80.0% { transform: translate(3.68px, -3.16px) scale(1.099); } 80.9% { transform: translate(3.49px, -3.17px) scale(1.115); } 81.8% { transform: translate(3.28px, -3.11px) scale(1.131); } 82.7% { transform: translate(3.06px, -2.98px) scale(1.147); } 83.6% { transform: translate(2.81px, -2.80px) scale(1.164); } 84.5% { transform: translate(2.55px, -2.56px) scale(1.179); } 85.5% { transform: translate(2.27px, -2.28px) scale(1.193); } 86.4% { transform: translate(1.97px, -1.97px) scale(1.206); } 87.3% { transform: translate(1.66px, -1.65px) scale(1.216); } 88.2% { transform: translate(1.33px, -1.34px) scale(1.224); } 89.1% { transform: translate(0.99px, -1.05px) scale(1.230); } 90.0% { transform: translate(0.64px, -0.79px) scale(1.234); } 90.9% { transform: translate(0.29px, -0.57px) scale(1.237); } 91.8% { transform: translate(-0.06px, -0.39px) scale(1.237); } 92.7% { transform: translate(-0.41px, -0.25px) scale(1.237); } 93.6% { transform: translate(-0.76px, -0.15px) scale(1.236); } 94.5% { transform: translate(-1.11px, -0.08px) scale(1.233); } 95.5% { transform: translate(-1.45px, -0.04px) scale(1.230); } 96.4% { transform: translate(-1.78px, -0.02px) scale(1.225); } 97.3% { transform: translate(-2.10px, -0.01px) scale(1.220); } 98.2% { transform: translate(-2.42px, -0.00px) scale(1.214); } 99.1% { transform: translate(-2.72px, -0.00px) scale(1.207); } 100.0% { transform: translate(-3.00px, -0.00px) scale(1.200); } }
.wa-work--orbit .d2 { animation-name: wa-wo2; }
@keyframes wa-wo2 { 0.0% { transform: translate(-2.14px, 0.00px) scale(0.857); } 0.9% { transform: translate(-1.92px, 0.00px) scale(0.853); } 1.8% { transform: translate(-1.69px, 0.00px) scale(0.850); } 2.7% { transform: translate(-1.46px, 0.00px) scale(0.847); } 3.6% { transform: translate(-1.23px, 0.01px) scale(0.845); } 4.5% { transform: translate(-0.99px, 0.03px) scale(0.843); } 5.5% { transform: translate(-0.76px, 0.06px) scale(0.841); } 6.4% { transform: translate(-0.52px, 0.10px) scale(0.840); } 7.3% { transform: translate(-0.28px, 0.17px) scale(0.839); } 8.2% { transform: translate(-0.04px, 0.27px) scale(0.839); } 9.1% { transform: translate(0.20px, 0.39px) scale(0.839); } 10.0% { transform: translate(0.44px, 0.54px) scale(0.841); } 10.9% { transform: translate(0.68px, 0.72px) scale(0.843); } 11.8% { transform: translate(0.92px, 0.93px) scale(0.845); } 12.7% { transform: translate(1.16px, 1.15px) scale(0.849); } 13.6% { transform: translate(1.40px, 1.40px) scale(0.854); } 14.5% { transform: translate(1.64px, 1.64px) scale(0.861); } 15.5% { transform: translate(1.88px, 1.88px) scale(0.868); } 16.4% { transform: translate(2.12px, 2.11px) scale(0.877); } 17.3% { transform: translate(2.36px, 2.31px) scale(0.886); } 18.2% { transform: translate(2.60px, 2.46px) scale(0.896); } 19.1% { transform: translate(2.84px, 2.58px) scale(0.907); } 20.0% { transform: translate(3.07px, 2.64px) scale(0.917); } 20.9% { transform: translate(3.29px, 2.65px) scale(0.927); } 21.8% { transform: translate(3.51px, 2.60px) scale(0.935); } 22.7% { transform: translate(3.71px, 2.51px) scale(0.943); } 23.6% { transform: translate(3.89px, 2.38px) scale(0.949); } 24.5% { transform: translate(4.06px, 2.21px) scale(0.955); } 25.5% { transform: translate(4.22px, 2.01px) scale(0.959); } 26.4% { transform: translate(4.36px, 1.79px) scale(0.962); } 27.3% { transform: translate(4.48px, 1.55px) scale(0.965); } 28.2% { transform: translate(4.59px, 1.29px) scale(0.968); } 29.1% { transform: translate(4.68px, 1.04px) scale(0.971); } 30.0% { transform: translate(4.77px, 0.78px) scale(0.975); } 30.9% { transform: translate(4.85px, 0.54px) scale(0.980); } 31.8% { transform: translate(4.91px, 0.32px) scale(0.987); } 32.7% { transform: translate(4.97px, 0.12px) scale(0.994); } 33.6% { transform: translate(5.01px, -0.05px) scale(1.003); } 34.5% { transform: translate(5.05px, -0.19px) scale(1.013); } 35.5% { transform: translate(5.07px, -0.28px) scale(1.024); } 36.4% { transform: translate(5.08px, -0.34px) scale(1.035); } 37.3% { transform: translate(5.08px, -0.36px) scale(1.047); } 38.2% { transform: translate(5.05px, -0.36px) scale(1.060); } 39.1% { transform: translate(5.01px, -0.33px) scale(1.072); } 40.0% { transform: translate(4.95px, -0.28px) scale(1.084); } 40.9% { transform: translate(4.87px, -0.23px) scale(1.096); } 41.8% { transform: translate(4.77px, -0.18px) scale(1.108); } 42.7% { transform: translate(4.65px, -0.13px) scale(1.120); } 43.6% { transform: translate(4.51px, -0.08px) scale(1.131); } 44.5% { transform: translate(4.35px, -0.05px) scale(1.142); } 45.5% { transform: translate(4.17px, -0.03px) scale(1.153); } 46.4% { transform: translate(3.97px, -0.01px) scale(1.163); } 47.3% { transform: translate(3.76px, -0.00px) scale(1.173); } 48.2% { transform: translate(3.52px, -0.00px) scale(1.183); } 49.1% { transform: translate(3.27px, -0.00px) scale(1.192); } 50.0% { transform: translate(3.00px, -0.00px) scale(1.200); } 50.9% { transform: translate(2.72px, -0.00px) scale(1.207); } 51.8% { transform: translate(2.42px, -0.00px) scale(1.214); } 52.7% { transform: translate(2.10px, -0.01px) scale(1.220); } 53.6% { transform: translate(1.78px, -0.02px) scale(1.225); } 54.5% { transform: translate(1.45px, -0.04px) scale(1.230); } 55.5% { transform: translate(1.11px, -0.08px) scale(1.233); } 56.4% { transform: translate(0.76px, -0.15px) scale(1.236); } 57.3% { transform: translate(0.41px, -0.25px) scale(1.237); } 58.2% { transform: translate(0.06px, -0.39px) scale(1.237); } 59.1% { transform: translate(-0.29px, -0.57px) scale(1.237); } 60.0% { transform: translate(-0.64px, -0.79px) scale(1.234); } 60.9% { transform: translate(-0.99px, -1.05px) scale(1.230); } 61.8% { transform: translate(-1.33px, -1.34px) scale(1.224); } 62.7% { transform: translate(-1.66px, -1.65px) scale(1.216); } 63.6% { transform: translate(-1.97px, -1.97px) scale(1.206); } 64.5% { transform: translate(-2.27px, -2.28px) scale(1.193); } 65.5% { transform: translate(-2.55px, -2.56px) scale(1.179); } 66.4% { transform: translate(-2.81px, -2.80px) scale(1.164); } 67.3% { transform: translate(-3.06px, -2.98px) scale(1.147); } 68.2% { transform: translate(-3.28px, -3.11px) scale(1.131); } 69.1% { transform: translate(-3.49px, -3.17px) scale(1.115); } 70.0% { transform: translate(-3.68px, -3.16px) scale(1.099); } 70.9% { transform: translate(-3.86px, -3.10px) scale(1.086); } 71.8% { transform: translate(-4.02px, -2.99px) scale(1.074); } 72.7% { transform: translate(-4.18px, -2.83px) scale(1.064); } 73.6% { transform: translate(-4.33px, -2.65px) scale(1.056); } 74.5% { transform: translate(-4.47px, -2.43px) scale(1.050); } 75.5% { transform: translate(-4.60px, -2.19px) scale(1.045); } 76.4% { transform: translate(-4.71px, -1.93px) scale(1.041); } 77.3% { transform: translate(-4.82px, -1.66px) scale(1.038); } 78.2% { transform: translate(-4.90px, -1.38px) scale(1.034); } 79.1% { transform: translate(-4.97px, -1.10px) scale(1.031); } 80.0% { transform: translate(-5.02px, -0.83px) scale(1.026); } 80.9% { transform: translate(-5.04px, -0.56px) scale(1.020); } 81.8% { transform: translate(-5.05px, -0.33px) scale(1.014); } 82.7% { transform: translate(-5.03px, -0.12px) scale(1.006); } 83.6% { transform: translate(-4.98px, 0.05px) scale(0.997); } 84.5% { transform: translate(-4.92px, 0.18px) scale(0.987); } 85.5% { transform: translate(-4.84px, 0.27px) scale(0.977); } 86.4% { transform: translate(-4.75px, 0.32px) scale(0.967); } 87.3% { transform: translate(-4.64px, 0.33px) scale(0.957); } 88.2% { transform: translate(-4.52px, 0.32px) scale(0.947); } 89.1% { transform: translate(-4.38px, 0.29px) scale(0.937); } 90.0% { transform: translate(-4.24px, 0.24px) scale(0.928); } 90.9% { transform: translate(-4.09px, 0.19px) scale(0.919); } 91.8% { transform: translate(-3.92px, 0.15px) scale(0.911); } 92.7% { transform: translate(-3.75px, 0.10px) scale(0.903); } 93.6% { transform: translate(-3.57px, 0.07px) scale(0.896); } 94.5% { transform: translate(-3.39px, 0.04px) scale(0.889); } 95.5% { transform: translate(-3.19px, 0.02px) scale(0.883); } 96.4% { transform: translate(-3.00px, 0.01px) scale(0.877); } 97.3% { transform: translate(-2.79px, 0.00px) scale(0.871); } 98.2% { transform: translate(-2.58px, 0.00px) scale(0.866); } 99.1% { transform: translate(-2.36px, 0.00px) scale(0.861); } 100.0% { transform: translate(-2.14px, 0.00px) scale(0.857); } }
/* enter / exit / switch: the dots grow out of the centre and fold back into it. Both marks stay mounted in the status line;
   is-on decides which one shows, so switching think <-> tool folds one away while the other grows in. */
.wa-status-ico .wa-work { position: absolute; left: -1px; top: -1px; margin: 0; animation: none; }
.wa-work .wa-wg { transform-box: view-box; transform-origin: 8px 8px; transform: scale(0) rotate(-40deg); opacity: 0; transition: transform 220ms var(--ease-in), opacity 140ms linear 80ms; }
.wa-work.is-on .wa-wg { transform: none; opacity: 1; animation: wa-work-grow 460ms var(--ease-spring) 120ms both; }
.wa-work:not(.is-on) circle { animation-play-state: paused; }
@keyframes wa-work-grow { from { transform: scale(0) rotate(40deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.wa-status:not(.is-running) .wa-status-ico > :not(.wa-work) { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) { .wa-work circle { animation: none !important; } .wa-work .wa-wg, .wa-work.is-on .wa-wg { animation: none; transition: opacity 160ms linear; transform: none; } }
.wa-status.is-running .wa-status-label { animation: wa-say-swap 320ms var(--ease-out) both, wa-shimmer 1.8s linear infinite; }
@keyframes wa-say-swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wa-status.is-running .wa-status-label { animation: wa-say-swap 320ms linear both; }
}

/* ===== revision 2026-11-20: trial feedback (login empty, rotate examples, ticket files, open sources, rename, attachment tiles, edit/copy question, resizable columns, full-window drop) ===== */
/* ticket "附带": one file chip per item */
.wa-kv-files { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-filechip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px 0 8px; border-radius: var(--radius-md); border: 1px solid var(--line-subtle); background: var(--bg-sidebar); font-size: 13px; line-height: 20px; color: var(--ink); }
.wa-filechip-ico { display: inline-flex; color: var(--ink-3); flex: none; }
.wa-filechip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-filechip-meta { flex: none; color: var(--ink-3); font-size: 11px; }
/* consulted docs: rows open the source, number sits like a prose citation */
.wa-sources { width: 100%; max-width: 460px; gap: 2px; padding: 6px; }
.wa-sources-row { width: 100%; gap: 10px; height: 32px; padding: 0 8px 0 6px; border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 13px; line-height: 20px; color: var(--ink); text-align: left; cursor: pointer; transition: background-color var(--dur-1) linear; }
.wa-sources-row .wa-srcnum { min-width: 17px; height: 17px; font-size: 11px; }
.wa-sources-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-sources-go { display: inline-flex; color: var(--ink-4, var(--ink-3)); opacity: 0; transform: translateX(-2px); transition: opacity var(--dur-1) linear, transform var(--dur-2) var(--ease-out); }
.wa-sources-row:hover, .wa-sources-row.is-hover { background: var(--fill-hover); }
.wa-sources-row:hover .wa-sources-go, .wa-sources-row.is-hover .wa-sources-go, .wa-sources-row.is-active .wa-sources-go { opacity: 1; transform: none; }
.wa-sources-row.is-active { background: var(--fill-selected); }
.wa-sources-row:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 2px var(--accent)); }
/* inline rename: same row height, one thin accent ring */
.wa-side-item.is-renaming { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); padding-right: 10px; }
.wa-side-rename { height: 20px; line-height: 20px; font-weight: 400; }
.wa-side-rename:focus, .wa-side-rename:focus-visible { outline: none; box-shadow: none; }
/* attachments: square tiles, Claude-desktop style */
.wa-atts { gap: 8px; }
.wa-att { display: block; width: 96px; height: 96px; max-width: none; padding: 9px 9px 0; border-radius: var(--radius-lg); border: 1px solid var(--line-subtle); background: var(--bg-sidebar); overflow: visible; }
.wa-att-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; word-break: break-all; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink); }
.wa-att-preview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; line-height: 14px; color: var(--ink-3); }
.wa-att-badge { position: absolute; left: 8px; bottom: 8px; height: 18px; padding: 0 6px; border-radius: var(--radius-xs); border: 1px solid var(--line-subtle); background: var(--surface); color: var(--ink-2); font-size: 10px; line-height: 16px; font-weight: 600; letter-spacing: .02em; }
.wa-att.is-img { padding: 0; overflow: hidden; }
.wa-att-thumb { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #dfe7f1 0%, #c9d6e6 45%, #b8c7d9 100%); }
.wa-att-thumb::after { content: ''; position: absolute; left: 14px; right: 14px; top: 18px; height: 36px; border-radius: 4px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.85) 0 4px, transparent 4px 9px); opacity: .7; }
.wa-att.is-img .wa-att-badge { background: rgba(255,255,255,.9); }
.wa-att-x { position: absolute; right: -6px; top: -6px; z-index: 2; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-xs); opacity: 0; cursor: pointer; transition: opacity var(--dur-1) linear; }
.wa-att-x .wa-ico { width: 10px; height: 10px; stroke-width: 2.2; }
.wa-att:hover .wa-att-x, .wa-att.is-error .wa-att-x, .wa-att.is-upfail .wa-att-x, .wa-att-x:focus-visible { opacity: 1; }
.wa-att.is-error { border-color: var(--danger); background: var(--danger-soft); }
.wa-att.is-error .wa-att-badge { color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.wa-att-veil { position: absolute; inset: 0; border-radius: inherit; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--surface) 62%, transparent); }
.wa-att-veil .wa-ring { position: relative; left: auto; top: auto; width: 30px; height: 30px; }
.wa-att-veil .wa-ring-retry { inset: auto; width: 30px; height: 30px; position: absolute; }
.wa-att-veil .wa-ring-retry .wa-ico { width: 14px; height: 14px; }
.wa-att.is-upfail { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.wa-att--sm { width: 72px; height: 72px; padding: 7px 7px 0; border-radius: var(--radius-md); animation: none; }
.wa-att--sm .wa-att-name { font-size: 11px; line-height: 14px; -webkit-line-clamp: 2; }
.wa-att--sm .wa-att-badge { left: 6px; bottom: 6px; }
.wa-att--sm.is-img { padding: 0; }
.wa-atts--sent { align-self: flex-end; justify-content: flex-end; margin-bottom: -8px; }
/* user question: copy (all) + edit (latest), shown on hover below the bubble */
.wa-useracts { display: flex; gap: 2px; margin-top: 4px; opacity: 0; transition: opacity var(--dur-1) linear; }
.wa-userwrap:hover .wa-useracts, .wa-userwrap.is-hover .wa-useracts, .wa-useracts:focus-within { opacity: 1; }
.wa-useracts .wa-iconbtn { color: var(--ink-3); }
.wa-useredit { position: relative; align-self: stretch; margin-left: 12%; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 10px 16px; border-radius: var(--radius-xl); border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); animation: wa-fade-up var(--dur-2) var(--ease-out) both; }
.wa-useredit-input { width: 100%; min-height: 52px; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 26px; }
.wa-useredit-foot { display: flex; align-items: center; gap: 6px; }
.wa-useredit-note { margin-right: auto; color: var(--ink-3); font-size: 12px; }
/* resizable columns */
.wa-resizer { position: absolute; top: 0; bottom: 0; z-index: 40; width: 9px; cursor: col-resize; }
.wa-resizer::after { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background-color var(--dur-2) linear, box-shadow var(--dur-2) linear; }
.wa-resizer:hover::after, .wa-resizer.is-on::after { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wa-resizer .wa-tip { top: 50%; opacity: 0; }
.wa-resizer.is-on .wa-tip { opacity: 1; }
.wa-resizer--side { right: -5px; }
.wa-resizer--panel { left: -5px; }
.wa-resizer--panel .wa-tip { left: auto; right: calc(100% + 4px); transform: translate(0, -50%); }
.wa-sidebar { overflow: visible; }
.wa-sidebar > .wa-side-inner { overflow: hidden; }
.wa-sidebar.is-collapsed .wa-resizer { display: none; }
.wa-window.is-resizing, .wa-window.is-resizing * { cursor: col-resize !important; user-select: none; }
.wa-window.is-resizing .wa-sidebar, .wa-window.is-resizing .wa-panel-slot { transition: none; }
/* full-window drop target */
.wa-dropzone { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: color-mix(in srgb, var(--bg-app) 72%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); animation: wa-fade-up var(--dur-2) var(--ease-out) both; pointer-events: none; }
.wa-dropzone::before { content: ''; position: absolute; inset: 10px; border-radius: calc(var(--radius-lg) + 2px); border: 1.5px solid var(--accent); box-shadow: inset 0 0 0 4px var(--accent-soft); }
.wa-dropzone-icons { position: relative; width: 112px; height: 56px; margin-bottom: 8px; }
.wa-dropzone-ico { position: absolute; top: 10px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line-subtle); box-shadow: var(--shadow-sm, var(--shadow-xs)); color: var(--accent); }
.wa-dropzone-ico .wa-ico { width: 20px; height: 20px; }
.wa-dropzone-ico.d1 { left: 0; transform: rotate(-12deg); }
.wa-dropzone-ico.d2 { left: 36px; top: 2px; z-index: 1; }
.wa-dropzone-ico.d3 { right: 0; transform: rotate(12deg); }
.wa-dropzone-text { position: relative; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wa-dropzone-sub { position: relative; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.wa-dropzone.is-bad::before { border-color: var(--danger); box-shadow: inset 0 0 0 4px var(--danger-soft); }
.wa-dropzone.is-bad .wa-dropzone-ico { color: var(--danger); }
.wa-dropzone.is-bad .wa-dropzone-text { color: var(--danger-ink); }
@media (prefers-reduced-motion: reduce) { .wa-dropzone, .wa-useredit { animation: none; } }
.wa-dropzone-icons { width: 132px; height: 64px; }
.wa-dropzone-ico { width: 48px; height: 48px; border-radius: var(--radius-lg); }
.wa-dropzone-ico .wa-ico { width: 22px; height: 22px; }
.wa-dropzone-ico.d2 { left: 42px; }
.wa-att-name { word-break: normal; overflow-wrap: anywhere; }
.wa-useredit-input, .wa-useredit-input:focus, .wa-useredit-input:focus-visible { border: 0 !important; outline: none !important; box-shadow: none !important; padding: 0; }
.wa-resizer--panel .wa-tip { left: 14px; right: auto; transform: translate(0, -50%); }
/* A popover opened inside a turn must sit above the following turns: their entrance animations make each later block its own layer, which painted over the card (trial feedback). */
.wa-turn { position: relative; }
.wa-turn:has(.wa-downcard), .wa-turn:has(.wa-menu), .wa-turn:has(.wa-popover) { z-index: 6; }
.wa-composer .wa-atts { padding: 6px 6px 0 0; margin-top: -6px; }
.wa-att.is-img { overflow: visible; }
/* unsupported attachment: no hint line; the tile says it (grey, ban badge, shake once, tip on hover) */
.wa-att.is-error { border-color: var(--danger); background: var(--surface-sunken); animation: wa-shake-x 420ms var(--ease-out) 1; }
.wa-att.is-error .wa-att-name { color: var(--ink-3); }
.wa-att.is-error .wa-att-badge { display: inline-flex; align-items: center; gap: 3px; color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.wa-att.is-error .wa-att-badge .wa-ico { width: 10px; height: 10px; stroke-width: 2; }
.wa-att > .wa-tip { top: auto; bottom: calc(100% + 8px); white-space: nowrap; }
.wa-att.is-error:hover > .wa-tip, .wa-att > .wa-tip.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .wa-att.is-error { animation: none; } }
/* sidebar top row: 34 px mark + 21 px wordmark in a 64 px row (trial feedback) */
.wa-side-mark .wa-mark--sm, .wa-side-mark .wa-unwrap { width: 34px; height: 34px; border-radius: 9px; }
.wa-side-mark .wa-unwrap-box { border-radius: 9px; }
/* pasted long text: a small page — white sheet, real text fading out, "粘贴" badge + count */
.wa-att.is-paste { padding: 10px 10px 0; background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(22, 27, 38, .05); }
.wa-att.is-paste .wa-att-preview { display: block; height: 58px; overflow: hidden; font-size: 10.5px; line-height: 14.5px; color: var(--ink-2); -webkit-line-clamp: unset; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.wa-att.is-paste .wa-att-badge { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.wa-att-count { position: absolute; right: 9px; bottom: 9px; font-size: 10px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* answer toolbar: always shown on the last answer; on earlier answers only while hovering that turn (Claude desktop) */
.wa-turn:not(.is-last) .wa-actions { animation: none; opacity: 0; transition: opacity var(--dur-1) linear; }
.wa-turn:not(.is-last):hover .wa-actions, .wa-turn:not(.is-last) .wa-actions:focus-within, .wa-turn:not(.is-last) .wa-actions:has(.wa-downcard, .wa-menu, .wa-tip.is-shown) { opacity: 1; }
.wa-sidebar .wa-side-top { height: var(--size-side-top); padding-top: 4px; }
/* layering rules for anything that floats out of the conversation flow (trial feedback, second round):
   1) the block that owns an open menu / popover / card sits above its later siblings — entrance animations give every later block its own layer;
   2) a floating layer never slides under the composer: when there is no room below, it opens upward (.is-up). */
.wa-card--handoff > :has(.wa-select.is-open), .wa-card--handoff > :has(.wa-menu) { position: relative; z-index: 5; }
.wa-popover.is-up { top: auto; bottom: calc(100% + 14px); transform-origin: 50% 100%; animation-name: wa-popover-in-up; }
@keyframes wa-popover-in-up { from { opacity: 0; transform: translate(-50%, 4px) scale(0.98); } to { opacity: 1; transform: translate(-50%, 0); } }
/* scroll areas: content dissolves into the fixed row above instead of being cut by a hard edge (right panel under the meta row, conversation under the title row) */
.wa-panel-meta { padding-bottom: 10px; }
.wa-panel-body { padding-top: 16px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px); mask-image: linear-gradient(180deg, transparent 0, #000 16px); }
.wa-thread { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px); mask-image: linear-gradient(180deg, transparent 0, #000 12px); }
/* consulted but not cited: grey dot instead of a number, not clickable */
.wa-sources-row.is-plain { cursor: default; color: var(--ink-2); }
.wa-sources-row.is-plain:hover { background: transparent; }
.wa-sources-row.is-plain .wa-srcnum { min-width: 7px; width: 7px; height: 7px; padding: 0; margin: 0 5px; background: var(--ink-4, var(--ink-3)); font-size: 0; }
.wa-sources-row.is-plain .wa-sources-go { display: none; }
/* ticket past its expected reply time: amber "已超时" tag with a clock, amber step dot that stops breathing */
.wa-tag--late { gap: 4px; background: var(--warning-soft); color: var(--warning-ink); }
.wa-tag--late .wa-ico { width: 12px; height: 12px; stroke-width: 1.8; }
.wa-steps li.is-current.is-late .wa-step-dot { box-shadow: inset 0 0 0 2px var(--warning); }
.wa-steps li.is-current.is-late .wa-step-dot::after { background: var(--warning); animation: none; }
.wa-step-late { color: var(--warning-ink); font-weight: 600; }
.wa-popover-warn { align-items: center; white-space: nowrap; }
.wa-popover-warn .wa-ico { margin-top: 0; }
/* a later version of the source: changed words get a highlighter-pen fill (no underline, so they do not read as links); the cited paragraph keeps a thin bar in its citation colour */
.wa-diff { text-decoration: none; padding: 1px 2px; margin: 0 1px; border-radius: 3px; background: #fbeeb8; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wa-src-cited { position: relative; padding-left: 12px; }
.wa-src-cited::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--cite-1); }
.wa-src-cited--2::before { background: var(--cite-2); } .wa-src-cited--3::before { background: var(--cite-3); } .wa-src-cited--4::before { background: var(--cite-4); } .wa-src-cited--5::before { background: var(--cite-5); } .wa-src-cited--6::before { background: var(--cite-6); }
.wa-verhint { font-size: 12px; white-space: nowrap; }
.wa-verhint > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* answer error card, second pass: hugs its content, lighter tint, one primary action (retry) and one quiet (hand off); the retry glyph is 14 px in its circle, not stretched */
.wa-oops { width: auto; max-width: 460px; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--danger-soft) 70%, var(--surface)) 0, var(--surface) 48%); }
.wa-oops > .wa-mark { margin-top: 0; width: 44px; height: 44px; border-radius: 12px; align-self: flex-start; }
.wa-oops-text { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.wa-oops .wa-nextrow { margin-top: 10px; }
.wa-action-ico--plain .wa-ico, .wa-action-ico--plain svg { width: 14px; height: 14px; }
.wa-action--retry { background: var(--accent); color: var(--on-accent); padding-right: 14px; }
.wa-action--retry .wa-action-ico--plain { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.wa-action--retry:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.wa-action--retry:hover .wa-action-ico--plain .wa-ico { transform: rotate(-120deg); }
