/* ==========================================================================
   Components — buttons, avatar, fields, modal/sheet, popover, menu, toast
   ========================================================================== */

/* Avatar */
.avatar {
  position: relative; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  background: var(--av-bg, var(--surface-3)); color: var(--av-ink, var(--text-2));
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--group { border-radius: 32%; }
.avatar--anon { background: var(--surface-3); color: var(--text-3); }
.avatar--anon svg { width: 55%; height: 55%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-md); white-space: nowrap;
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast);
}
.btn:active:not(:disabled) { opacity: .9; }
.btn:disabled { opacity: .45; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 90%, black); }
.btn--soft { background: var(--accent-soft); color: var(--accent-text); }
.btn--soft:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 16%, white); }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn--outline { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); background: var(--surface); }
.btn--outline:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #a8341f; }
.btn--sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--sm svg { width: 16px; height: 16px; }
.btn--block { width: 100%; }

.ibtn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2);
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast), transform var(--motion-fast);
}
.ibtn:hover { background: var(--surface-2); color: var(--text); }
.ibtn:active { opacity: .88; }
.ibtn.is-on { background: var(--accent-soft); color: var(--accent-text); }
.ibtn svg { width: 20px; height: 20px; }
.ibtn--sm { width: 32px; height: 32px; }
.ibtn--sm svg { width: 18px; height: 18px; }

/* Fields */
.field {
  position: relative; display: flex; align-items: center;
  height: 40px; border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--motion-fast), background var(--motion-fast);
}
.field:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 3px color-mix(in oklab, var(--accent) 10%, transparent); }
.field > svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.field input {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 12px 0 40px; font-size: var(--fs-md);
}
.field input::placeholder { color: var(--text-3); }
.field--plain input { padding-left: 12px; }
.field__clear { position: absolute; right: 4px; }

.label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; border-radius: var(--r-md); border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 10px 12px; font-size: var(--fs-md); outline: 0;
  transition: box-shadow var(--motion-fast);
}
.input { height: 42px; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent); }
.hint { font-size: var(--fs-sm); color: var(--text-3); margin-top: 6px; }
.form-row + .form-row { margin-top: var(--s4); }

/* Chips & segmented */
.chip {
  height: 30px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  transition: all var(--motion-fast) var(--ease-standard);
}
.chip:hover { background: var(--surface-2); }
.chip.is-on { background: var(--text); color: var(--surface); box-shadow: none; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); gap: 2px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  height: 30px; padding: 0 12px; border-radius: 7px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
}
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg button.is-on[data-v="exclude"] { color: var(--danger); }
.seg button.is-on[data-v="anon"] { color: var(--text); }

/* Switch */
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line-2);
  transition: background var(--motion-normal) var(--ease-standard);
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--motion-normal) var(--ease-emphasized);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.setting {
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px 0;
}
.setting + .setting { border-top: 1px solid var(--line); }
.setting__main { flex: 1; min-width: 0; }
.setting__title { font-weight: 600; font-size: var(--fs-md); }
.setting__sub { font-size: var(--fs-sm); color: var(--text-3); }

/* Checkbox */
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-md); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; margin: 0; flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: background var(--motion-fast), box-shadow var(--motion-fast); }
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge--high { background: var(--ok-soft); color: var(--ok); }
.badge--med { background: var(--warn-soft); color: var(--warn); }
.badge--low { background: var(--surface-2); color: var(--text-3); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }

/* ---------------------------------------------------------------- Layer: scrim */
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(22, 20, 15, 0.32);
  opacity: 0;
  transition: opacity var(--motion-smooth) var(--ease-standard);
}
.scrim.is-on { opacity: 1; }
.scrim--clear { background: transparent; }

/* Modal */
.modal {
  position: fixed; z-index: 41;
  left: 50%; top: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: min(760px, calc(var(--app-h) - 48px));
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-3), 0 0 0 1px var(--line);
  opacity: 0; transform: translate(-50%, -46%);
  transition: opacity var(--motion-smooth) var(--ease-standard), transform var(--motion-smooth) var(--ease-emphasized);
  overflow: hidden;
}
.modal.is-on { opacity: 1; transform: translate(-50%, -50%); }
.modal--lg { width: min(820px, calc(100vw - 32px)); height: min(720px, calc(var(--app-h) - 48px)); }
.modal--sm { width: min(420px, calc(100vw - 32px)); }
.modal__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) var(--s3) var(--s6); flex-shrink: 0; }
.modal__title { flex: 1; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.modal__sub { color: var(--text-3); font-size: var(--fs-sm); margin-top: 2px; font-weight: 500; }
.modal__body { flex: 1; min-height: 0; padding: var(--s2) var(--s6) var(--s5); overflow-y: auto; overscroll-behavior: contain; }
.modal__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--s2);
  padding: var(--s4) var(--s6) calc(var(--s4) + var(--safe-b));
  border-top: 1px solid var(--line); flex-shrink: 0;
}
.modal__foot .spacer { flex: 1; }
.modal__grip { display: none; }

.confirm__body { color: var(--text-2); font-size: var(--fs-md); }
.confirm__body p { margin: 0 0 var(--s2); }
.confirm__note { margin-top: var(--s3); padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2); display: flex; gap: 8px; }

/* Popover */
.pop {
  position: fixed; z-index: 45;
  min-width: 200px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-3), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--motion-normal) var(--ease-standard), transform var(--motion-normal) var(--ease-emphasized);
}
.pop.is-on { opacity: 1; transform: none; }

.menu { padding: 6px; display: grid; }
.menu button {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: var(--fs-md); font-weight: 500; text-align: left; color: var(--text);
  transition: background var(--motion-fast);
}
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); outline: 0; }
.menu button svg { width: 18px; height: 18px; color: var(--text-3); }
.menu button.is-danger, .menu button.is-danger svg { color: var(--danger); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }

/* Reaction bar */
.rxbar {
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
}
.rxbar button {
  width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  transition: transform var(--motion-fast) var(--ease-emphasized), background var(--motion-fast);
  animation: rx-in var(--motion-smooth) var(--ease-emphasized) both;
}
.rxbar button:nth-child(2) { animation-delay: 20ms; } .rxbar button:nth-child(3) { animation-delay: 40ms; }
.rxbar button:nth-child(4) { animation-delay: 60ms; } .rxbar button:nth-child(5) { animation-delay: 80ms; }
.rxbar button:nth-child(6) { animation-delay: 100ms; } .rxbar button:nth-child(7) { animation-delay: 120ms; }
.rxbar button:hover { background: var(--surface-2); }
.rxbar button.is-mine { background: var(--accent-soft); }
.rxbar .rxbar__more { font-size: 0; color: var(--text-3); background: var(--surface-2); width: 34px; height: 34px; margin-left: 2px; }
.rxbar .rxbar__more svg { width: 18px; height: 18px; }
@keyframes rx-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Emoji picker */
.emoji { width: 340px; max-width: calc(100vw - 24px); }
.emoji__tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.emoji__tabs button { flex: 1; height: 36px; border-radius: 8px 8px 0 0; font-size: 18px; opacity: .55; transition: opacity var(--motion-fast), background var(--motion-fast); position: relative; }
.emoji__tabs button.is-on { opacity: 1; }
.emoji__tabs button.is-on::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.emoji__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; height: 240px; overflow-y: auto; }
.emoji__grid button { aspect-ratio: 1; border-radius: 8px; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background var(--motion-fast), transform var(--motion-fast); }
.emoji__grid button:hover { background: var(--surface-2); }
.emoji__label { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); padding: 6px 4px 2px; text-transform: uppercase; letter-spacing: .06em; }

/* Attach / create sheet */
.attach { padding: 8px; display: grid; gap: 2px; min-width: 240px; max-width: min(360px, 92vw); }
.attach--sheet { max-height: min(70vh, 560px); overflow-y: auto; padding: 10px 8px 12px; gap: 10px; }
.attach__sec { display: grid; gap: 2px; }
.attach__label {
  font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 6px 10px 4px;
}
.attach button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-weight: 600; text-align: left; transition: background var(--motion-fast); }
.attach button:hover { background: var(--surface-2); }
.attach button:active { opacity: .9; }
.attach i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.attach i svg { width: 18px; height: 18px; }
.attach small { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; margin-top: 1px; }

/* Task from message */
.source-ref { margin-bottom: 14px; }
.source-ref__label { font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 6px; letter-spacing: .02em; }
.source-ref__body {
  display: grid; gap: 2px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.source-ref__body strong { font-size: var(--fs-sm); color: var(--accent-text); }
.source-ref__body span { font-size: var(--fs-sm); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.clist-edit { display: grid; gap: 8px; }
.clist-edit__row { display: flex; align-items: center; gap: 6px; }
.clist-edit__row .input { flex: 1; }

/* Toast */
.toasts {
  position: fixed; z-index: 60; left: 50%; bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 14px 10px 12px;
  border-radius: var(--r-md);
  background: #1d1b17; color: #f6f4ef;
  font-size: var(--fs-md); font-weight: 500;
  box-shadow: var(--sh-3);
  pointer-events: auto;
  animation: toast-in var(--motion-smooth) var(--ease-emphasized);
}
.toast.is-out { animation: toast-out var(--motion-normal) var(--ease-exit) forwards; }
.toast svg { width: 18px; height: 18px; opacity: .9; }
.toast--ok svg { color: #8fd6a8; }
.toast--error svg { color: #f2a08f; }
.toast--warn svg { color: #f1c27a; }
.toast button { margin-left: 6px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* Contact picker list (group create / add) */
.plist { display: grid; gap: 2px; margin-top: var(--s2); }
.pitem {
  display: flex; align-items: center; gap: var(--s3);
  padding: 8px 10px; border-radius: var(--r-md); cursor: pointer;
  transition: background var(--motion-fast);
}
.pitem:hover { background: var(--surface-2); }
.pitem .avatar { width: 38px; height: 38px; font-size: 13px; }
.pitem__main { flex: 1; min-width: 0; }
.pitem__name { font-weight: 600; font-size: var(--fs-md); }
.pitem__sub { font-size: var(--fs-sm); color: var(--text-3); }
.pitem .check input { pointer-events: none; }

.chosen { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.chosen:not(:empty) { margin-top: var(--s3); }
.chosen button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 4px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: var(--fs-sm); font-weight: 600;
}
.chosen .avatar { width: 22px; height: 22px; font-size: 9px; }
.chosen svg { width: 14px; height: 14px; }

.avatar-pick { display: flex; align-items: center; gap: var(--s4); }
.avatar-pick .avatar { width: 64px; height: 64px; font-size: 20px; }

/* ---------------------------------------------------------------- Appearance */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform var(--motion-fast) var(--ease-emphasized);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--text); }
.swatch--custom { display: grid; place-items: center; background: conic-gradient(from 0deg, #e35d5b, #e3b35b, #6bc46d, #5bb8e3, #8e6be3, #e35bb4, #e35d5b); overflow: hidden; }
.swatch--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.swatch--custom svg { width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); pointer-events: none; }

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-card {
  border-radius: var(--r-lg); padding: 10px; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--motion-fast), transform var(--motion-fast);
}
.theme-card:hover { transform: translateY(-1px); }
.theme-card.is-on { box-shadow: inset 0 0 0 2px var(--text); }
.theme-card__prev { height: 56px; border-radius: 10px; padding: 8px; display: grid; gap: 5px; align-content: center; }
.theme-card__prev i { display: block; height: 12px; border-radius: 6px; }
.theme-card__prev i:nth-child(1) { width: 60%; }
.theme-card__prev i:nth-child(2) { width: 70%; justify-self: end; }
.theme-card span { display: block; font-size: var(--fs-sm); font-weight: 600; margin-top: 8px; }

.appearance__preview {
  border-radius: var(--r-lg); padding: 14px; background: var(--chat-bg);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; margin-bottom: var(--s5);
}
.appearance__preview .bubble { font-size: var(--fs-md); max-width: 78%; }
.appearance__preview .pv-in { justify-self: start; }
.appearance__preview .pv-out { justify-self: end; }
.appearance__preview .pv-out .bubble { background: var(--pv-out, var(--out)); color: var(--pv-out-ink, var(--out-ink)); box-shadow: none; border-bottom-right-radius: 6px; }
.appearance__preview .pv-in .bubble { background: var(--pv-in, var(--in)); color: var(--pv-in-ink, var(--in-ink)); border-bottom-left-radius: 6px; }
.appearance__preview .pv-btn { justify-self: end; margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.appearance__preview .pv-btn i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.appearance__preview .pv-btn i svg { width: 16px; height: 16px; }
.color-row { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.color-row__label { width: 120px; flex-shrink: 0; }
.color-row__label b { display: block; font-size: var(--fs-md); }
.color-row__label small { color: var(--text-3); font-size: var(--fs-xs); }
.hex { width: 92px; height: 34px; border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 10px; font-size: var(--fs-sm); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; outline: 0; background: var(--surface); }
.hex:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.contrast-note { font-size: var(--fs-xs); color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-top: -10px; margin-bottom: var(--s4); }

.tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--s6)) var(--s5); padding: 0 var(--s6); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; height: 40px; font-weight: 600; font-size: var(--fs-md); color: var(--text-3); white-space: nowrap; }
.tabs button.is-on { color: var(--text); }
.tabs button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(12, 11, 9, .9); opacity: 0; transition: opacity var(--motion-smooth); padding: calc(56px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.lightbox.is-on { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; transform: scale(.96); transition: transform var(--motion-smooth) var(--ease-emphasized); }
.lightbox.is-on img { transform: none; }
.lightbox__close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; color: #fff; }
.lightbox__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: calc(16px + var(--safe-b)); text-align: center; color: #eee; font-size: var(--fs-md); }

/* Info list (message info) */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: var(--fs-md); }
.kv dt { color: var(--text-3); font-weight: 500; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
