/* Analyzer69000 comments widget — matches site theme (dark / glass / neon-red) */
:root {
  --a69-bg: rgba(10,14,20,0.72);
  --a69-bg-solid: #0b1220;
  --a69-border: rgba(255,255,255,0.08);
  --a69-border-strong: rgba(255,255,255,0.14);
  --a69-text: #e5e7eb;
  --a69-text-dim: #94a3b8;
  --a69-text-mute: #64748b;
  --a69-red: #f87171;
  --a69-red-strong: #ef4444;
  --a69-amber: #fbbf24;
  --a69-cyan: #22d3ee;
  --a69-green: #34d399;
  --a69-accent: #60a5fa;
  --a69-radius: 12px;
  --a69-radius-sm: 8px;
  --a69-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --a69-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.a69 { font-family: var(--a69-font); color: var(--a69-text); line-height: 1.5; }
.a69 * { box-sizing: border-box; }

/* Container */
.a69-root {
  margin: 3rem auto;
  max-width: 80rem;
  padding: 0 1rem;
}
.a69-panel {
  background: var(--a69-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--a69-border);
  border-radius: var(--a69-radius);
  padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(239,68,68,0.08), 0 10px 40px -12px rgba(0,0,0,0.6);
}
.a69-panel + .a69-panel { margin-top: 1rem; }

/* Header */
.a69-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.a69-header h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.a69-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(239,68,68,0.12); color: var(--a69-red); border: 1px solid rgba(239,68,68,0.3); }
.a69-badge-count { background: rgba(255,255,255,0.05); color: var(--a69-text-dim); border-color: var(--a69-border); }
.a69-badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Buttons */
.a69-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em;
  border-radius: var(--a69-radius-sm); border: 1px solid var(--a69-border-strong);
  background: rgba(255,255,255,0.03); color: var(--a69-text);
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.05s;
  font-family: var(--a69-font); user-select: none;
}
.a69-btn:hover:not(:disabled) { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); }
.a69-btn:active:not(:disabled) { transform: translateY(1px); }
.a69-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.a69-btn-primary { background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.08)); border-color: rgba(239,68,68,0.45); color: #fff; }
.a69-btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, rgba(239,68,68,0.28), rgba(239,68,68,0.14)); border-color: rgba(239,68,68,0.7); }
.a69-btn-ghost { background: transparent; border-color: transparent; color: var(--a69-text-dim); padding: 0.3rem 0.6rem; font-weight: 600; }
.a69-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.05); color: var(--a69-text); border-color: transparent; }
.a69-btn-sm { padding: 0.3rem 0.6rem; font-size: 11.5px; }
.a69-btn-icon { width: 30px; height: 30px; padding: 0; }

/* Signed-in bar */
.a69-signin-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.85rem 1rem; border-radius: var(--a69-radius-sm); background: rgba(255,255,255,0.03); border: 1px dashed var(--a69-border-strong); margin-bottom: 1rem; }
.a69-signin-row.verified { border-style: solid; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.04); }
.a69-signin-text { font-size: 12px; color: var(--a69-text-dim); flex: 1; min-width: 200px; }
.a69-signin-text strong { color: #fff; }
.a69-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.a69-step { display: flex; align-items: center; gap: 0.35rem; font-size: 11.5px; font-weight: 600; color: var(--a69-text-dim); }
.a69-step.done { color: var(--a69-green); }
.a69-step .a69-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; position: relative; }
.a69-step.done .a69-dot { background: var(--a69-green); border-color: var(--a69-green); }
.a69-step.done .a69-dot::after { content: ''; position: absolute; top: 1px; left: 3px; width: 4px; height: 7px; border: solid #0b1220; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Connected identity panel */
.a69-id-row { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.a69-id-summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; width: 100%; }
.a69-id-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a69-green); box-shadow: 0 0 10px var(--a69-green); flex-shrink: 0; }
.a69-id-avatar { width: 32px; height: 32px; }
.a69-id-main { flex: 1; min-width: 0; }
.a69-id-line { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.a69-id-handle { color: #fff; font-weight: 800; font-size: 13px; }
.a69-id-verified { color: var(--a69-green); font-weight: 900; font-size: 13px; }
.a69-id-sub { margin-top: 2px; font-size: 11px; color: var(--a69-text-mute); display: flex; align-items: center; gap: 0.5rem; }
.a69-id-wallet { font-family: var(--a69-mono); cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; transition: color 0.15s; }
.a69-id-wallet:hover { color: var(--a69-text); }
.a69-id-copy { opacity: 0.5; font-size: 12px; }
.a69-id-wallet:hover .a69-id-copy { opacity: 1; }
.a69-id-details { padding: 0.75rem 0.9rem 0.85rem; border-top: 1px dashed var(--a69-border); background: rgba(0,0,0,0.15); display: flex; flex-direction: column; gap: 0.75rem; }
.a69-id-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem 0.9rem; }
.a69-id-cell { min-width: 0; }
.a69-id-cell-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--a69-text-mute); font-weight: 800; margin-bottom: 3px; }
.a69-id-cell-value { font-size: 12px; color: var(--a69-text); font-family: var(--a69-mono); display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; overflow: hidden; text-overflow: ellipsis; }
.a69-id-verified-mark { color: var(--a69-text-mute); font-size: 10.5px; font-family: var(--a69-font); }
.a69-id-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.a69-id-chip.admin { background: rgba(239,68,68,0.18); color: var(--a69-red); border: 1px solid rgba(239,68,68,0.35); }
.a69-id-chip.mod   { background: rgba(251,191,36,0.15); color: var(--a69-amber); border: 1px solid rgba(251,191,36,0.35); }
.a69-id-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.a69-id-actions .a69-btn { flex: 0 1 auto; }
@media (max-width: 640px) {
  .a69-id-summary { padding: 0.65rem 0.75rem; gap: 0.55rem; }
  .a69-id-details { padding: 0.65rem 0.75rem 0.75rem; }
  .a69-id-actions { flex-direction: column; align-items: stretch; }
  .a69-id-actions .a69-btn { width: 100%; justify-content: center; }
}

/* User chip */
.a69-me { display: flex; align-items: center; gap: 0.6rem; }
.a69-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(34,211,238,0.2)); border: 1px solid var(--a69-border-strong); object-fit: cover; }
.a69-me-handle { font-weight: 800; color: #fff; font-size: 12.5px; }
.a69-me-wallet { font-family: var(--a69-mono); font-size: 10.5px; color: var(--a69-text-mute); }

/* Composer panel title (when composer is at bottom) */
.a69-composer-panel { position: relative; }
.a69-composer-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: -0.005em; margin-bottom: 0.7rem; padding-bottom: 0.55rem; border-bottom: 1px dashed var(--a69-border); text-transform: none; }
.a69-composer-title > span:first-child { display: inline-flex; align-items: center; gap: 0.35rem; }
.a69-composer-title > span:first-child::before { content: '💬'; }
.a69-composer-shortcut { font-size: 10px; color: var(--a69-text-mute); font-weight: 600; letter-spacing: 0.02em; font-family: var(--a69-mono); }

/* Composer */
.a69-composer { display: flex; flex-direction: column; gap: 0.75rem; }
.a69-composer-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.a69-kind-tabs { display: inline-flex; background: rgba(255,255,255,0.04); border: 1px solid var(--a69-border); border-radius: var(--a69-radius-sm); padding: 2px; }
.a69-kind-tab { padding: 0.3rem 0.7rem; font-size: 11px; font-weight: 700; color: var(--a69-text-dim); cursor: pointer; border-radius: 6px; border: 0; background: transparent; font-family: inherit; }
.a69-kind-tab:hover { color: var(--a69-text); }
.a69-kind-tab.active { background: rgba(239,68,68,0.14); color: var(--a69-red); }
.a69-textarea {
  width: 100%; min-height: 90px; resize: vertical;
  padding: 0.75rem 0.9rem; font-family: var(--a69-font); font-size: 13px; line-height: 1.55;
  background: rgba(0,0,0,0.35); color: var(--a69-text); border: 1px solid var(--a69-border-strong);
  border-radius: var(--a69-radius-sm); outline: none; transition: border-color 0.15s;
}
.a69-textarea:focus { border-color: rgba(239,68,68,0.5); }
.a69-textarea::placeholder { color: var(--a69-text-mute); }
.a69-composer-foot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: space-between; }
.a69-composer-tools { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.a69-attach-btn { position: relative; overflow: hidden; }
.a69-attach-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Character counter */
.a69-char-count { font-size: 10.5px; color: var(--a69-text-mute); text-align: right; margin-top: 2px; font-variant-numeric: tabular-nums; transition: color 0.15s; }
.a69-char-count.a69-char-warn { color: var(--a69-amber); font-weight: 700; }

/* Attached previews */
.a69-attachments { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.a69-attach-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem 0.3rem 0.3rem; border-radius: var(--a69-radius-sm); background: rgba(255,255,255,0.05); border: 1px solid var(--a69-border-strong); font-size: 11px; }
.a69-attach-chip img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.a69-attach-chip .a69-attach-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a69-text-dim); }
.a69-attach-remove { border: 0; background: transparent; color: var(--a69-text-mute); cursor: pointer; font-size: 14px; padding: 0 4px; }
.a69-attach-remove:hover { color: var(--a69-red); }

/* Comment list */
.a69-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.a69-empty { text-align: center; color: var(--a69-text-mute); padding: 2rem 1rem; font-size: 13px; }

.a69-comment { border: 1px solid var(--a69-border); border-radius: var(--a69-radius-sm); padding: 0.9rem 1rem; background: rgba(0,0,0,0.2); }
.a69-comment.a69-pinned { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.03); }
.a69-comment.a69-flagged { border-color: rgba(251,146,60,0.3); }
.a69-comment .a69-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 12px; }
.a69-comment .a69-head a { color: var(--a69-text-dim); text-decoration: none; }
.a69-comment .a69-head a:hover { color: var(--a69-cyan); text-decoration: underline; }
.a69-comment .a69-head .a69-handle { color: #fff; font-weight: 800; font-size: 12.5px; }
.a69-comment .a69-head .a69-wallet { font-family: var(--a69-mono); font-size: 10.5px; color: var(--a69-text-mute); }
.a69-comment .a69-head .a69-time { color: var(--a69-text-mute); font-size: 11px; }
.a69-comment .a69-kind-chip { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; border: 1px solid; }
.a69-kind-evidence { color: var(--a69-green); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.a69-kind-counter { color: var(--a69-amber); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.a69-kind-pending { color: var(--a69-amber); border-color: rgba(251,146,60,0.4); background: rgba(251,146,60,0.08); }

.a69-body { font-size: 13px; color: var(--a69-text); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.a69-body a { color: var(--a69-cyan); text-decoration: underline; text-underline-offset: 2px; }
.a69-body code { font-family: var(--a69-mono); font-size: 11.5px; background: rgba(255,255,255,0.05); padding: 1px 4px; border-radius: 3px; }

.a69-comment-atts { margin-top: 0.6rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.a69-att-img { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--a69-border); cursor: zoom-in; }
.a69-att-pdf { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border: 1px solid var(--a69-border-strong); border-radius: var(--a69-radius-sm); background: rgba(255,255,255,0.03); color: var(--a69-cyan); text-decoration: none; font-size: 12px; font-weight: 600; }
.a69-att-pdf:hover { background: rgba(255,255,255,0.06); }

.a69-actions { display: flex; align-items: center; gap: 0.2rem; margin-top: 0.6rem; flex-wrap: wrap; }
.a69-action {
  background: transparent; border: 1px solid transparent;
  color: var(--a69-text-mute); cursor: pointer;
  padding: 0.4rem 0.7rem; font-family: inherit;
  font-size: 12px; font-weight: 700; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.a69-action:hover { background: rgba(255,255,255,0.06); color: var(--a69-text); }
.a69-action:active { transform: scale(0.96); }
.a69-action:focus-visible { outline: 2px solid var(--a69-red); outline-offset: 2px; }

/* Like heart — filled when liked + press animation + bounce on like */
.a69-like { position: relative; overflow: visible; }
.a69-like .a69-like-heart { font-size: 15px; line-height: 1; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s; }
.a69-like.liked { color: var(--a69-red); border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); }
.a69-like.liked .a69-like-heart { color: var(--a69-red); text-shadow: 0 0 12px rgba(239,68,68,0.55); }
.a69-like-count { font-variant-numeric: tabular-nums; }
@keyframes a69-heart-burst {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.45); }
  50%  { transform: scale(0.92); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.a69-like.a69-like-burst .a69-like-heart { animation: a69-heart-burst 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.a69-like.a69-like-burst::after {
  content: ''; position: absolute; inset: -4px; border-radius: 10px;
  background: radial-gradient(circle, rgba(239,68,68,0.35), transparent 60%);
  animation: a69-like-glow 0.6s ease-out;
  pointer-events: none;
}
@keyframes a69-like-glow {
  0%   { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Reply context banner */
.a69-reply-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: var(--a69-radius-sm);
  background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.25);
  font-size: 11.5px; color: var(--a69-text);
  margin-bottom: 0.5rem;
}
.a69-reply-banner strong { color: var(--a69-accent); }
.a69-reply-cancel { padding: 0.2rem 0.5rem; font-size: 10.5px; }

/* Report modal — reason grid */
.a69-reason-grid {
  display: grid; gap: 0.4rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0.25rem;
}
.a69-reason-btn {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.7rem; font-family: inherit; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.03); border: 1px solid var(--a69-border-strong);
  border-radius: var(--a69-radius-sm); color: var(--a69-text); cursor: pointer;
  text-align: left; transition: background 0.15s, border-color 0.15s;
  min-height: 44px;
}
.a69-reason-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.a69-reason-btn.active { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.5); color: #fecaca; }
.a69-reason-icon { font-size: 15px; flex-shrink: 0; }
.a69-reason-label { font-size: 12px; line-height: 1.3; }
@media (max-width: 480px) { .a69-reason-grid { grid-template-columns: 1fr; } }

/* Replies (1 level — visually indented) */
.a69-replies { margin-top: 0.75rem; margin-left: 1.2rem; padding-left: 1rem; border-left: 2px solid var(--a69-border); display: flex; flex-direction: column; gap: 0.5rem; }

/* Modal */
.a69-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.a69-modal { max-width: 520px; width: 100%; background: var(--a69-bg-solid); border: 1px solid var(--a69-border-strong); border-radius: var(--a69-radius); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(239,68,68,0.1); z-index: 9999; max-height: 90vh; overflow-y: auto; }
.a69-modal-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--a69-border); display: flex; align-items: center; justify-content: space-between; }
.a69-modal-head h4 { margin: 0; font-size: 14px; font-weight: 800; color: #fff; }
.a69-modal-body { padding: 1.25rem; }
.a69-modal-body p { margin: 0 0 0.75rem 0; font-size: 12.5px; color: var(--a69-text-dim); line-height: 1.6; }
.a69-modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--a69-border); display: flex; justify-content: flex-end; gap: 0.5rem; }
.a69-close { background: transparent; border: 0; color: var(--a69-text-mute); cursor: pointer; font-size: 20px; line-height: 1; padding: 0.3rem; }
.a69-close:hover { color: var(--a69-text); }

/* Wallet picker */
.a69-wallet-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0; }
.a69-wallet-btn {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border: 1px solid var(--a69-border-strong); border-radius: var(--a69-radius-sm);
  background: rgba(255,255,255,0.03); color: var(--a69-text);
  cursor: pointer; transition: background 0.15s, border-color 0.15s; font-family: inherit; font-size: 13px; font-weight: 600;
  text-align: left; width: 100%;
}
.a69-wallet-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(239,68,68,0.4); }
.a69-wallet-btn:focus-visible { outline: 2px solid var(--a69-red); outline-offset: 2px; }
.a69-wallet-btn.a69-wallet-selected { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.55); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.a69-wallet-btn img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.a69-chain-tag.a69-tag-active { background: currentColor !important; color: #0b1220 !important; box-shadow: 0 4px 14px -4px currentColor; }
.a69-chain-tag.sol.a69-tag-active { background: #c084fc !important; color: #1a0b2e !important; }
.a69-chain-tag.evm.a69-tag-active { background: #60a5fa !important; color: #0b1a2e !important; }
.a69-chain-tag { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; font-weight: 800; letter-spacing: 0.04em; border: 1px solid transparent; transition: transform 0.1s, box-shadow 0.1s; }
.a69-chain-tag.sol { background: rgba(153,69,255,0.18); color: #c084fc; border-color: rgba(153,69,255,0.35); }
.a69-chain-tag.sol:hover { background: rgba(153,69,255,0.30); transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(153,69,255,0.6); }
.a69-chain-tag.evm { background: rgba(97,190,255,0.14); color: #60a5fa; border-color: rgba(97,190,255,0.3); }
.a69-chain-tag.evm:hover { background: rgba(97,190,255,0.28); transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(97,190,255,0.6); }

/* ToS */
.a69-tos { font-size: 11.5px; color: var(--a69-text-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--a69-border); border-radius: var(--a69-radius-sm); padding: 0.75rem 0.9rem; max-height: 180px; overflow-y: auto; line-height: 1.55; }
.a69-tos strong { color: var(--a69-amber); }
.a69-tos-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.75rem 0 0; font-size: 12px; color: var(--a69-text); cursor: pointer; }
.a69-tos-check input { margin-top: 2px; accent-color: var(--a69-red); }

/* Toast */
.a69-toast { position: fixed; right: 16px; top: 16px; z-index: 10001; display: flex; flex-direction: column; gap: 6px; }
.a69-toast-item { background: var(--a69-bg-solid); border: 1px solid var(--a69-border-strong); padding: 0.6rem 0.9rem; border-radius: var(--a69-radius-sm); font-size: 12px; color: var(--a69-text); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7); max-width: 340px; }
.a69-toast-item.err { border-color: rgba(239,68,68,0.4); color: #fecaca; }
.a69-toast-item.ok { border-color: rgba(52,211,153,0.3); color: #a7f3d0; }

/* Spinner */
.a69-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--a69-red); border-radius: 50%; animation: a69spin 0.8s linear infinite; }
@keyframes a69spin { to { transform: rotate(360deg); } }

/* Profile peek (hover card) */
.a69-peekable { cursor: pointer; }
.a69-peek {
  position: absolute;
  width: 300px;
  max-width: calc(100vw - 16px);
  background: var(--a69-bg-solid);
  border: 1px solid var(--a69-border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.85), 0 0 0 1px rgba(239,68,68,0.08);
  z-index: 10005;
  animation: a69-peek-in 0.12s ease-out;
  overflow: hidden;
}
@keyframes a69-peek-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.a69-peek-inner { padding: 0.85rem 0.95rem; }
.a69-peek-err { color: var(--a69-text-mute); font-size: 12px; text-align: center; }
.a69-peek-head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.a69-peek-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--a69-border-strong); object-fit: cover; }
.a69-peek-id { flex: 1; min-width: 0; }
.a69-peek-name { font-size: 13px; font-weight: 800; color: #fff; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.a69-peek-name a { color: #fff; text-decoration: none; }
.a69-peek-name a:hover { color: var(--a69-cyan); }
.a69-peek-display { font-size: 11px; color: var(--a69-text-mute); margin-top: 2px; }
.a69-peek-badge { font-size: 9.5px; font-weight: 900; padding: 1px 7px; border-radius: 999px; letter-spacing: 0.04em; }
.a69-peek-badge.admin { background: rgba(239,68,68,0.18); color: var(--a69-red); border: 1px solid rgba(239,68,68,0.4); }
.a69-peek-badge.mod   { background: rgba(251,191,36,0.15); color: var(--a69-amber); border: 1px solid rgba(251,191,36,0.4); }
.a69-peek-bio { font-size: 11.5px; color: var(--a69-text-dim); line-height: 1.5; margin: 0.5rem 0; }
.a69-peek-wallet { display: flex; gap: 0.4rem; align-items: center; font-size: 11px; color: var(--a69-text-dim); margin: 0.45rem 0; }
.a69-peek-wallet .mono { font-family: var(--a69-mono); }
.a69-peek-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px dashed var(--a69-border); }
.a69-peek-stats div { text-align: center; font-size: 10px; color: var(--a69-text-mute); display: flex; flex-direction: column; gap: 2px; }
.a69-peek-stats strong { font-size: 14px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.a69-peek-stats span { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.a69-peek-joined { margin-top: 0.4rem; font-size: 10px; color: var(--a69-text-mute); text-align: center; }
.a69-peek-verified-inline { color: #1d9bf0; font-size: 13px; font-weight: 900; }
.a69-peek-x { margin: 0.55rem 0 0; padding: 0.55rem 0 0; border-top: 1px dashed var(--a69-border); }
.a69-peek-x-head { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--a69-text-mute); margin-bottom: 0.35rem; display:flex; align-items:center; gap:0.35rem; }
.a69-peek-verified { color: #1d9bf0; font-size: 11.5px; font-weight: 900; background: rgba(29,155,240,0.1); border: 1px solid rgba(29,155,240,0.3); border-radius: 999px; padding: 0 6px; }
.a69-peek-x-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.a69-peek-x-grid div { text-align: center; font-size: 10px; color: var(--a69-text-mute); display: flex; flex-direction: column; gap: 2px; }
.a69-peek-x-grid strong { font-size: 13px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.a69-peek-x-grid span { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.a69-peek-x-meta { margin-top: 0.35rem; font-size: 11px; color: var(--a69-text-dim); display: flex; align-items: center; gap: 0.3rem; }
.a69-peek-x-meta a { color: var(--a69-cyan); text-decoration: none; }
.a69-peek-x-meta a:hover { text-decoration: underline; }

/* Inline admin/mod action group on comments */
.a69-action-mod-group { display: inline-flex; align-items: center; gap: 0.1rem; margin-left: 0.3rem; padding-left: 0.4rem; border-left: 1px solid var(--a69-border); }
.a69-action-mod-label { font-size: 8.5px; font-weight: 900; color: var(--a69-amber); letter-spacing: 0.08em; padding: 0 0.35rem 0 0.1rem; }
.a69-action-admin { color: var(--a69-amber); }
.a69-action-admin:hover { background: rgba(251,191,36,0.10); color: var(--a69-amber); }
.a69-action-danger { color: var(--a69-red) !important; }
.a69-action-danger:hover { background: rgba(239,68,68,0.12); color: var(--a69-red) !important; }

/* Lightbox */
.a69-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 10000; cursor: zoom-out; }
.a69-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }

/* Turnstile container */
.a69-turnstile { margin: 0.5rem 0; min-height: 65px; }

/* =====================================================================
   RESPONSIVE — mobile-first. All utilities, tap targets, and overflow
   guards sized for a 320px-wide viewport; progressive upscales added below.
   ===================================================================== */

/* Universal overflow guards — long wallets / tx hashes must never break layout */
.a69-root, .a69-panel, .a69-comment, .a69-body,
.a69-id-row, .a69-id-main, .a69-id-details, .a69-id-cell,
.a69-peek, .a69-modal, .a69-composer, .a69-signin-row {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* Mobile-first defaults (≤480px) */
.a69-root { padding: 0 0.5rem; margin: 1.25rem auto; }
.a69-panel { padding: 0.85rem; border-radius: 10px; }
.a69-header { gap: 0.5rem; margin-bottom: 0.75rem; }
.a69-header h3 { font-size: 13px; }
.a69-textarea { font-size: 16px; }  /* 16px prevents iOS auto-zoom on focus */

/* Sign-in row stacks on small screens */
.a69-signin-row { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.75rem 0.85rem; }
.a69-signin-row > div:last-child { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.a69-signin-row > div:last-child .a69-btn { flex: 1 1 140px; justify-content: center; }
.a69-signin-text { font-size: 11.5px; }
.a69-steps { justify-content: flex-start; }

/* Identity panel (connected state) */
.a69-id-summary { gap: 0.5rem; padding: 0.65rem 0.75rem; }
.a69-id-avatar { width: 28px; height: 28px; flex-shrink: 0; }
.a69-id-handle { font-size: 12.5px; }
.a69-id-line { gap: 0.3rem; }
.a69-id-sub { font-size: 10.5px; }
.a69-id-details { padding: 0.65rem 0.75rem 0.75rem; }
.a69-id-row-grid { grid-template-columns: 1fr; gap: 0.5rem; }
.a69-id-actions { flex-direction: column; align-items: stretch; }
.a69-id-actions .a69-btn { width: 100%; justify-content: center; min-height: 40px; }

/* Composer */
.a69-composer-head { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.a69-kind-tabs { width: 100%; display: flex; }
.a69-kind-tab { flex: 1; text-align: center; min-height: 34px; }
.a69-composer-title { font-size: 12px; }
.a69-composer-shortcut { display: none; }  /* no keyboard on phones */
.a69-composer-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.a69-composer-foot .a69-btn-primary { width: 100%; min-height: 44px; font-size: 13px; }
.a69-composer-tools { justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem; }

/* Turnstile widget fluid */
.a69-turnstile { margin: 0.5rem 0; max-width: 100%; overflow-x: auto; }

/* Comments */
.a69-comment { padding: 0.75rem 0.85rem; }
.a69-comment .a69-head { gap: 0.35rem; flex-wrap: wrap; }
.a69-comment .a69-head .a69-avatar { width: 24px; height: 24px; }
.a69-comment .a69-head .a69-handle { font-size: 12px; }
.a69-comment .a69-head .a69-wallet { font-size: 10px; }
.a69-comment .a69-head .a69-time { font-size: 10px; }
.a69-body { font-size: 13px; }

/* Attachments fill-width on mobile */
.a69-att-img { width: 100%; height: auto; max-width: 100%; max-height: 260px; object-fit: contain; background: rgba(0,0,0,0.35); }
.a69-comment-atts { gap: 0.4rem; }
.a69-att-pdf { flex: 1 1 100%; justify-content: center; padding: 0.55rem 0.75rem; }

/* Action row wraps + admin mod group stacks */
.a69-actions { flex-wrap: wrap; gap: 0.2rem; }
.a69-action { min-height: 36px; padding: 0.4rem 0.6rem; font-size: 11.5px; }
.a69-action-mod-group { flex-wrap: wrap; margin-left: 0; padding-left: 0; border-left: 0; border-top: 1px dashed var(--a69-border); width: 100%; padding-top: 0.35rem; margin-top: 0.35rem; }

/* Reply indentation minimal on mobile so content has room */
.a69-replies { margin-left: 0.4rem; padding-left: 0.55rem; }

/* Modal fills the screen */
.a69-modal-backdrop { padding: 0; align-items: flex-end; }
.a69-modal { max-width: 100vw; max-height: 92vh; width: 100%; border-radius: 16px 16px 0 0; animation: a69-modal-up 0.18s ease-out; }
@keyframes a69-modal-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.a69-modal-body, .a69-modal-head, .a69-modal-foot { padding: 0.8rem 0.9rem; }
.a69-wallet-btn { padding: 0.7rem 0.75rem; font-size: 13px; min-height: 48px; }
.a69-wallet-btn img { width: 26px; height: 26px; }

/* Toast — anchored to the top, full width on narrow screens */
.a69-toast { right: 8px; left: 8px; top: 8px; }
.a69-toast-item { max-width: 100%; }

/* Profile peek — on small screens behaves like a bottom sheet */
.a69-peek { position: fixed !important; left: 8px !important; right: 8px !important; top: auto !important; bottom: 8px !important; width: auto !important; max-width: none !important; }
.a69-peek-x-grid, .a69-peek-stats { grid-template-columns: repeat(2, 1fr); }

/* Tap targets: minimum 44×44 on touch devices */
@media (hover: none) and (pointer: coarse) {
  .a69-btn, .a69-btn-primary, .a69-wallet-btn { min-height: 44px; }
  .a69-btn-sm { min-height: 38px; }
  .a69-action { min-height: 40px; padding: 0.5rem 0.75rem; }
  .a69-kind-tab { min-height: 40px; }
  .a69-chain-tag { padding: 6px 12px !important; font-size: 11px !important; }
}

/* Tablet — 481px+ */
@media (min-width: 481px) {
  .a69-root { padding: 0 1rem; margin: 2rem auto; }
  .a69-panel { padding: 1.25rem; border-radius: 12px; }
  .a69-header h3 { font-size: 14px; }
  .a69-textarea { font-size: 13px; }

  .a69-signin-row { flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; }
  .a69-signin-row > div:last-child { flex: 0 0 auto; }
  .a69-signin-row > div:last-child .a69-btn { flex: 0 0 auto; }

  .a69-id-summary { gap: 0.7rem; padding: 0.7rem 0.9rem; }
  .a69-id-avatar { width: 32px; height: 32px; }
  .a69-id-row-grid { grid-template-columns: repeat(2, 1fr); }
  .a69-id-actions { flex-direction: row; align-items: center; }
  .a69-id-actions .a69-btn { width: auto; }

  .a69-composer-head { flex-direction: row; align-items: center; }
  .a69-kind-tabs { width: auto; }
  .a69-kind-tab { flex: 0 0 auto; }
  .a69-composer-shortcut { display: inline; }
  .a69-composer-foot { flex-direction: row; align-items: center; }
  .a69-composer-foot .a69-btn-primary { width: auto; }

  .a69-att-img { width: 180px; height: 130px; object-fit: cover; max-height: none; }
  .a69-att-pdf { flex: 0 0 auto; }

  .a69-replies { margin-left: 1rem; padding-left: 0.9rem; }
  .a69-action-mod-group { flex-wrap: nowrap; width: auto; border-left: 1px solid var(--a69-border); border-top: 0; margin-left: 0.3rem; padding-left: 0.4rem; margin-top: 0; padding-top: 0; }

  .a69-modal-backdrop { padding: 1rem; align-items: center; }
  .a69-modal { max-width: 520px; border-radius: 12px; }

  .a69-peek { position: absolute !important; left: auto !important; right: auto !important; bottom: auto !important; width: 300px !important; max-width: calc(100vw - 16px) !important; }
  .a69-peek-x-grid, .a69-peek-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop — 900px+ */
@media (min-width: 900px) {
  .a69-root { max-width: 80rem; margin: 3rem auto; }
  .a69-panel { padding: 1.5rem; }
}

/* High-DPI sharper borders */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .a69-avatar, .a69-id-avatar, .a69-peek-avatar, .a69-wallet-btn img { image-rendering: -webkit-optimize-contrast; }
}

/* Dark scheme respect (our theme is dark by default; also declare for OS) */
@media (prefers-color-scheme: light) {
  /* Our widget stays dark on purpose — investigation tools look off in light. */
}

@media (prefers-reduced-motion: reduce) {
  .a69-spin { animation: none; }
  .a69-btn, .a69-btn-primary, .a69-wallet-btn, .a69-chain-tag { transition: none; }
  .a69-modal, .a69-peek { animation: none !important; }
}

/* Focus-visible for keyboard users */
.a69-btn:focus-visible, .a69-action:focus-visible, .a69-kind-tab:focus-visible,
.a69-wallet-btn:focus-visible, .a69-chain-tag:focus-visible {
  outline: 2px solid var(--a69-red);
  outline-offset: 2px;
}

/* Landscape phones keep the composer reachable */
@media (max-height: 500px) and (orientation: landscape) {
  .a69-modal { max-height: 96vh; }
  .a69-peek { max-height: 70vh; overflow-y: auto; }
  .a69-root { margin: 0.75rem auto; }
}
