/* The attach drawer (app_infra#2358): a paperclip, and a bottom sheet with source chips. Since #2386 it matches kit-chat's Compose
   Attach (no-photo-grid state) control by control: the paperclip is 36 px with a 22 px glyph in onSurfaceVariant grey, chips are
   32 px filter chips on ONE row at any font size (they scroll sideways at 200%, never wrap), the body is a tonal full-width button,
   the "Room for N" line and, when there is something to say, the note under the chips. Sizes in rem so large text grows them.
   Colours from the app's --bg, --ink, --muted, --line, --bot, --accent, --err (with fallbacks). */
.kit-clip { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; box-sizing: border-box;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted, #49454f); cursor: pointer; }
.kit-clip svg { width: 22px; height: 22px; }
.kit-sheet-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.kit-sheet-backdrop[hidden] { display: none; }
.kit-sheet { box-sizing: border-box; width: 100%; max-width: 40rem; max-height: 85vh; max-height: 85dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg, #fff); color: var(--ink, #111);
  border-radius: 1.75rem 1.75rem 0 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); outline: none; font-size: 1rem; }
/* The grip is a tall touch target (the drag handle of Material's sheet is 32x4 dp inside a 48 dp area); the bar is drawn by ::before. */
.kit-sheet-grip { flex: none; height: 1.5rem; margin: 0 -16px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.kit-sheet-grip::before { content: ""; width: 2rem; height: .25rem; border-radius: 1rem; background: var(--line, #79747e); }
.kit-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.kit-chips::-webkit-scrollbar { display: none; }
.kit-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; box-sizing: border-box; padding: 0 .5rem 0 .5rem; border-radius: .5rem; -webkit-tap-highlight-color: transparent;
  font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap; border: 1px solid var(--line, #79747e); background: none; color: inherit; cursor: pointer; }
.kit-chip svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--accent, #5b3fa0); }
.kit-chip.kit-on { background: var(--bot, #e8def8); border-color: transparent; }
.kit-clip:focus:not(:focus-visible), .kit-chip:focus:not(:focus-visible) { outline: none; } /* no ring after touch (#2362) */
.kit-chip:focus-visible, .kit-clip:focus-visible, .kit-sheet-go:focus-visible { outline: 2px solid var(--accent, #5b3fa0); outline-offset: 2px; }
.kit-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding: 4px; margin: -4px; } /* room for the focus ring, which overflow would clip */
.kit-sheet-room, .kit-sheet-note { margin: 0; overflow-wrap: anywhere; }
.kit-sheet-room { font-size: .75rem; color: var(--muted, #49454f); }
.kit-sheet-note { font-size: .875rem; color: var(--err, #b3261e); }
.kit-sheet-room[hidden], .kit-sheet-note[hidden], .kit-sheet-go[hidden] { display: none; }
/* FilledTonalButton: full width, 56 px high, pill, icon 22 + 8 gap, label centred. */
.kit-sheet-go { display: flex; align-items: center; justify-content: center; gap: .5rem; box-sizing: border-box; width: 100%; min-height: 56px; padding: .5rem 1.5rem; border: 0; border-radius: 28px;
  font: inherit; font-size: .875rem; font-weight: 500; background: var(--bot, #e8def8); color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kit-sheet-go-icon svg { display: block; width: 22px; height: 22px; }
.kit-clip:disabled, .kit-chip:disabled, .kit-sheet-go:disabled { opacity: .4; cursor: default; }
.kit-clip[aria-busy="true"] { animation: kit-busy 1.2s ease-in-out infinite; }
@keyframes kit-busy { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .kit-clip[aria-busy="true"] { animation: none; } }
