.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
#toggle-claude .glyph { font-size: 21px; }
[data-view="shared"] #toggle-claude, [data-view="shared"] #claude-dock { display: none !important; }
#editor [data-chat-role] { white-space: pre-wrap; margin: 1.4em 0; }
#editor [data-chat-role="assistant"] { border-left: 2px solid currentColor; padding-left: 20px; margin-left: 0; opacity: .86; }
#editor [data-chat-state="incomplete"]::after { content: '\A[reply incomplete]'; font-size: 11px; opacity: .6; white-space: pre; }
body[data-claude="true"] .menus:not(.menus-bottom),
body[data-claude="true"] .word-count, body[data-claude="true"] .status { display: none; }
body[data-claude="true"] #editor { padding-top: 32px; padding-bottom: 32px; bottom: var(--claude-dock-height, 160px); }
#claude-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8;
  padding: 14px 170px 18px 24px; background: var(--bg); border-top: 1px solid var(--menu-border);
  font: 12px/1.5 'Roboto Mono', ui-monospace, monospace;
}
.claude-compose { display: flex; gap: 12px; align-items: flex-end; max-width: 900px; }
#claude-input { flex: 1; min-width: 0; resize: none; max-height: 180px; border: 0; outline: none; background: transparent; color: var(--fg); font: 16px/1.6 'Roboto Mono', monospace; padding: 4px 0; }
#claude-input::placeholder { color: var(--fg); opacity: .65; }
#claude-input:focus-visible { box-shadow: 0 1px currentColor; }
#claude-notice { color: var(--fg); opacity: .75; min-height: 18px; margin: 8px 0; overflow-wrap: anywhere; }
.claude-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
#claude-model { max-width: 180px; font: inherit; background: var(--menu-bg); color: var(--fg); border: 1px solid var(--menu-border); padding: 5px 8px; border-radius: 5px; }
#claude-credits { color: var(--fg); opacity: .75; font-size: 10px; text-underline-offset: 3px; }
#claude-tokens { color: var(--fg); opacity: .65; font-size: 10px; }
body[data-generating="true"] #open-cloud, body[data-generating="true"] #open-share,
body[data-generating="true"] #toggle-claude { opacity: .4; pointer-events: none; }
@media (max-width: 680px) {
  #claude-dock { padding: 12px 16px 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body[data-claude="true"] #editor { padding: 24px 16px; }
  #claude-input { max-height: 140px; }
  .claude-bar { gap: 8px; }
  #claude-credits { max-width: calc(100% - 30px); }
}

#claude-budget { font-size: 11px; }
#claude-provider { color: var(--fg); opacity: .85; font-size: 11px; overflow-wrap: anywhere; }
#editor [data-chat-model]::before { content: attr(data-chat-model); display: block; font: 10px/1.5 ui-monospace, monospace; opacity: .65; margin-bottom: 6px; }

/* The loader is presentation-only: it never enters saved page content. */
#editor[data-awaiting-reply="true"]::after {
  content: '/'; display: block; width: 1ch; margin: 1.4em 0;
  font-family: ui-monospace, monospace; color: var(--fg);
  animation: txt-reply-spinner 800ms step-end infinite;
}
@keyframes txt-reply-spinner {
  0%, 100% { content: '/'; }
  25%, 75% { content: '|'; }
  50% { content: '\\'; }
}
@media (prefers-reduced-motion: reduce) {
  #editor[data-awaiting-reply="true"]::after { animation: none; content: '|'; }
}
