.nilo-attachments{align-items:center;gap:10px;min-width:0;display:flex}.nilo-composer-attachments{overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--result-edge) transparent;flex-wrap:nowrap;margin:0 0 2px;padding:2px 2px 12px;overflow-x:auto}.nilo-message-attachments{flex-wrap:wrap;justify-content:flex-end;padding:0 0 10px}.nilo-attachment{border:1px solid var(--result-edge);background:var(--result-canvas);width:210px;max-width:100%;height:64px;transition:background var(--result-fast),border-color var(--result-fast),box-shadow var(--result-fast);border-radius:14px;flex:none;align-items:center;gap:10px;padding:10px 34px 10px 12px;display:flex;position:relative}.nilo-attachment:hover,.nilo-attachment:focus-within{background:var(--result-paper);border-color:#d1d1d1;box-shadow:0 2px 8px #2e2e2e06}.nilo-attachment-symbol,.nilo-attachment-thumb{width:32px;height:40px;color:var(--result-muted);background:0 0;border:0;border-radius:7px;flex-shrink:0;place-items:center;padding:0;display:grid;overflow:hidden}.nilo-attachment-thumb{cursor:zoom-in}.nilo-attachment-thumb img{object-fit:cover;width:100%;height:100%;transition:transform var(--result-reveal) var(--result-ease);display:block}.nilo-attachment-thumb:hover img{transform:scale(1.035)}.nilo-attachment-caption{min-width:0;color:var(--result-ink);flex:1;font-size:12px;line-height:1.4}.nilo-attachment-caption>span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.nilo-attachment-caption small{color:var(--result-muted);overflow-wrap:anywhere;align-items:center;gap:4px;margin-top:4px;font-size:10px;line-height:1.4;display:flex}.nilo-attachment-remove{width:32px;height:32px;color:var(--result-muted);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:10px;place-items:center;padding:0;transition:opacity .16s,color .16s;display:grid;position:absolute;top:calc(50% - 16px);right:2px}.nilo-attachment-remove>span{border-radius:50%;place-items:center;width:22px;height:22px;transition:background .16s;display:grid}.nilo-attachment:is(:hover,:focus-within) .nilo-attachment-remove{opacity:1;pointer-events:auto}.nilo-attachment-remove:hover>span{background:var(--interaction-surface);color:var(--interaction-ink)}.nilo-attachment.is-image{background:var(--result-canvas);border:0;border-radius:13px;gap:0;width:76px;height:76px;padding:0;box-shadow:inset 0 0 0 1px #2731280c}.nilo-attachment.is-image .nilo-attachment-thumb,.nilo-attachment.is-image .nilo-attachment-symbol{border-radius:inherit;width:100%;height:100%}.nilo-attachment.is-image .nilo-attachment-caption{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.nilo-attachment.is-image .nilo-attachment-remove{color:#fff;top:0;right:0}.nilo-attachment.is-image .nilo-attachment-remove>span{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#20272380;box-shadow:0 1px 4px #00000012}.nilo-attachment.is-image .nilo-attachment-remove:hover>span{color:#fff;background:#252525bb}.nilo-message-attachments .nilo-attachment.is-image{width:112px;height:96px}.nilo-attachment-studio{border:1px solid var(--border);background:var(--card);width:32px;height:32px;color:var(--foreground);border-radius:10px;place-items:center;padding:0;display:grid;position:absolute;top:3px;left:3px}.nilo-attachment-studio:hover{background:var(--accent)}.nilo-attachment-studio[hidden]{display:none}.nilo-attachment.is-error{background:#fcf9f7;border-color:#e5d6ce;width:250px;height:auto;min-height:64px}.nilo-attachment.is-error .nilo-attachment-caption small{color:var(--result-negative)}.nilo-attachment.is-error .nilo-attachment-remove{opacity:1;pointer-events:auto}.nilo-attachment-progress{background:#c8cec27a;border-radius:2px;height:2px;position:absolute;bottom:0;left:12px;right:12px;overflow:hidden}.nilo-attachment.is-image .nilo-attachment-progress{background:#ffffffb3;bottom:5px;left:7px;right:7px;box-shadow:0 0 0 1px #00000008}.nilo-attachment-progress i{background:var(--result-accent);height:100%;transition:width var(--result-fast);display:block}.nilo-add-attachment{width:40px;height:40px}.nilo-add-attachment:disabled{opacity:.4}.nilo-attachment-dropzone{min-width:0;transition:box-shadow var(--result-fast);border-radius:20px}.nilo-attachment-dropzone[data-dragging=true]{box-shadow:0 0 0 2px var(--interaction-ink);background:var(--interaction-surface)}.nilo-attachment :is(button,a):focus-visible{outline:2px solid var(--interaction-ring);outline-offset:2px}.nilo-attachment.is-image .nilo-attachment-remove:focus-visible{outline-offset:-2px}.nilo-attachment-upload-label{display:none}.nilo-attachment-picker-note{color:#818181;margin:0 4px 10px;font-size:12px;line-height:1.6}.nilo-attachment-picker-action{min-height:68px}.nilo-attachment-picker-action>span{flex-direction:column;gap:3px;display:flex}.nilo-attachment-picker-action small{color:#858585;font-size:12px;line-height:1.4}@media (max-width:760px),(pointer:coarse){.nilo-composer-attachments{gap:8px;padding-bottom:12px}.nilo-attachment{gap:8px;width:230px;height:auto;min-height:72px;padding-right:48px}.nilo-attachment-symbol,.nilo-attachment-thumb{width:40px;height:44px}.nilo-attachment-caption>span{-webkit-line-clamp:2;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box}.nilo-attachment-caption small{font-size:11px}.nilo-attachment.is-image{width:80px;height:80px;padding:0}.nilo-attachment-remove{opacity:1;pointer-events:auto;width:44px;height:44px;top:calc(50% - 22px);right:0}.nilo-attachment.is-image .nilo-attachment-remove{top:0;right:0}.nilo-attachment.is-image .nilo-attachment-remove>span{background:#252525ad;width:26px;height:26px}.nilo-message-attachments .nilo-attachment.is-image{width:112px;height:100px}.nilo-attachment-studio{width:44px;height:44px}.nilo-attachment.is-error{width:260px}.nilo-attachment.is-error .nilo-attachment-caption small{line-height:1.5}.nilo-attachment-upload-label{color:#fff;pointer-events:none;font-variant-numeric:tabular-nums;background:#252525ad;border-radius:5px;padding:2px 5px;font-size:10px;line-height:1.5;display:block;position:absolute;bottom:10px;left:7px}.nilo-add-attachment{width:44px;height:44px}}@media (prefers-reduced-motion:reduce){:root:not([data-nilo-motion=full]) .nilo-attachment,:root:not([data-nilo-motion=full]) .nilo-attachment-thumb img,:root:not([data-nilo-motion=full]) .nilo-attachment-remove,:root:not([data-nilo-motion=full]) .nilo-attachment-remove>span,:root:not([data-nilo-motion=full]) .nilo-attachment-progress i,:root:not([data-nilo-motion=full]) .nilo-attachment-dropzone{transition:none}:root:not([data-nilo-motion=full]) .nilo-attachment-thumb:hover img{transform:none}}@media (prefers-reduced-transparency:reduce){.nilo-attachment.is-image .nilo-attachment-remove>span{-webkit-backdrop-filter:none;backdrop-filter:none;background:#343b36}}
