.ui-dialog-overlay:has(>.reference-picker),html.in-app .ui-dialog-overlay:has(>.reference-picker){position:fixed;inset:var(--inapp-viewport-top,0) 0 var(--inapp-keyboard-inset,0);z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(19,22,27,.36);-webkit-backdrop-filter:none;backdrop-filter:none}.ui-dialog.reference-picker,html.in-app .ui-dialog.reference-picker{display:flex;flex-direction:column;width:100%;max-width:520px;height:min(640px,80dvh);min-height:0;max-height:calc(100dvh - 40px - var(--inapp-keyboard-inset, 0px));padding:0;border-radius:20px;overflow:hidden;background:var(--bg-surface);box-shadow:var(--shadow-modal)}.reference-picker .arc-picker-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:20px 20px 12px}.reference-picker .arc-picker-title{margin:0;font:700 20px/28px var(--font-serif);color:var(--text-primary)}.reference-picker .arc-picker-sub{margin:4px 0 0;font-size:12px;line-height:20px;color:var(--text-secondary)}.reference-picker .arc-picker-close{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-8px -10px 0 0;border:0;background:transparent;color:var(--text-secondary);cursor:pointer}.reference-picker .arc-picker-close svg{width:18px;height:18px}.reference-picker .arc-picker-search{flex:none;display:flex;align-items:center;gap:8px;height:44px;min-height:44px;margin:0 20px 12px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:var(--bg-app);color:var(--text-muted)}.reference-picker .arc-picker-search input{min-width:0;flex:1 1;width:100%;height:42px;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--text-primary)}.reference-picker .arc-picker-search button{display:grid;place-items:center;flex:none;width:32px;height:44px;padding:0;border:0;background:none;color:inherit;cursor:pointer}.reference-picker .arc-picker-search:focus-within{border-color:var(--accent-500)}.reference-picker .arc-picker-list{flex:1 1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 12px}.reference-picker .reference-picker-row{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:72px;padding:10px 8px;margin:0 0 4px;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer}.reference-picker .reference-picker-row.on{border-color:var(--accent-500);background:var(--accent-100)}.reference-picker .reference-picker-row.is-disabled{opacity:.5;cursor:not-allowed}.reference-picker .reference-picker-row:focus-within{outline:2px solid var(--accent-500);outline-offset:-2px}.reference-picker .arc-picker-native{position:absolute;opacity:0;width:1px;height:1px}.reference-picker .arc-picker-file-badge{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:36px;height:44px;border:1px solid var(--border-subtle);border-radius:5px;background:var(--bg-surface);color:var(--text-secondary)}.reference-picker .arc-picker-file-badge small{font-size:9px;line-height:12px}.reference-picker .reference-picker-main{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:4px}.reference-picker .reference-picker-main>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;font-size:14px;font-weight:500;line-height:20px;color:var(--text-primary)}.reference-picker .reference-picker-main>small{font-size:11px;line-height:16px;color:var(--text-secondary)}.reference-picker .arc-picker-check{display:grid;place-items:center;flex:none;width:20px;height:20px;border:1.5px solid var(--border-strong);border-radius:5px;color:white}.reference-picker.is-single .arc-picker-check{border-radius:50%}.reference-picker .on .arc-picker-check{background:var(--accent-500);border-color:var(--accent-500)}.reference-picker .arc-picker-check i{width:8px;height:8px;border-radius:50%;background:white}.reference-picker .arc-picker-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:72px;padding:12px 20px;border-top:1px solid var(--border-subtle);background:var(--bg-surface)}.reference-picker .arc-picker-summary{color:var(--text-secondary);font-size:12px;line-height:20px}.reference-picker .arc-picker-summary b{color:var(--text-primary);font:600 14px var(--font-sans)}.reference-picker .arc-picker-confirm{flex:none;min-height:44px;padding:0 20px;border:0;border-radius:9px;background:var(--accent-500);color:white;font:600 14px var(--font-sans);cursor:pointer}.reference-picker .arc-picker-confirm:disabled{opacity:.4;cursor:default}.reference-picker .reference-picker-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;height:100%;gap:8px;padding:24px;text-align:center;color:var(--text-secondary)}.reference-picker .reference-picker-state>svg{width:28px;height:28px;margin-bottom:8px}.reference-picker .reference-picker-state strong{font-size:15px;font-weight:600;color:var(--text-primary)}.reference-picker .reference-picker-state>span{max-width:100%;font-size:12px;line-height:20px;overflow-wrap:anywhere}.reference-picker .arc-picker-retry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--accent-500);font-size:13px;cursor:pointer;text-decoration:none}@media(max-width:650px){.ui-dialog-overlay:has(>.reference-picker),html.in-app .ui-dialog-overlay:has(>.reference-picker){align-items:flex-end;padding:12px 12px max(12px,var(--inapp-safe-bottom,env(safe-area-inset-bottom,0px)))}.ui-dialog.reference-picker,html.in-app .ui-dialog.reference-picker{height:min(600px,78dvh);max-height:calc(100dvh - 24px - var(--inapp-safe-bottom, env(safe-area-inset-bottom, 0px)) - var(--inapp-keyboard-inset, 0px));border-radius:20px}.reference-picker .arc-picker-head{padding:18px 16px 12px}.reference-picker .arc-picker-search{margin-left:16px;margin-right:16px}.reference-picker .arc-picker-list{padding-left:8px;padding-right:8px}.reference-picker .arc-picker-foot{padding-left:16px;padding-right:16px}}