/* The check before a file is chosen (founder, 9 November 2026), drawn by upcheck.js on the conversation page and the
   forms page. The page's own tokens colour it in both themes: a plain box on a scrim, as the conversation's answer
   dialog is, and a sheet from the bottom on a phone. The shared popover surface has no motion. Buttons are the conversation's pills: ink
   words, colour on the border only, a fill under the pointer, the press that gives (pointer:fine). */
.uc{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px;background:rgba(7,9,15,.55)}
.uc[hidden]{display:none}
html.uc-open body{overflow:hidden}
.uc-box{box-sizing:border-box;width:440px;max-width:100%;display:flex;flex-direction:column;gap:12px;padding:16px;
        border-radius:12px;background:var(--popover);box-shadow:var(--popover-shadow);color:var(--ink)}
.uc-box:focus{outline:none}
.uc-head{display:flex;align-items:center;gap:8px}
.uc-title{flex:1;min-width:0;font-size:15px;font-weight:500;line-height:1.45;color:var(--ink)}
.uc-x{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--mute);cursor:pointer}
.uc-x:hover{background:color-mix(in srgb,var(--ink) 9%,var(--paper));color:var(--ink)}
.uc-x svg{width:15px;height:15px}
.uc-text{font-size:14px;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.uc-text p,.uc-text ul{margin:0}
.uc-text ul{display:flex;flex-direction:column;gap:6px;padding:0 0 0 18px}
.uc-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.uc-back{margin-right:auto;padding:0;border:0;border-radius:0;background:none;font:inherit;font-size:12.5px;line-height:1.4;color:var(--mute);cursor:pointer}
.uc-back:hover{color:var(--ink)}
.uc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:2px 11px;font:inherit;font-size:13px;line-height:1.2;
        color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;cursor:pointer;white-space:nowrap}
.uc-btn:hover,.uc-btn:focus-visible{background:color-mix(in srgb,var(--ink) 9%,var(--surface))}
.uc-btn.main{border-color:var(--ink);font-weight:500}
.uc-btn:focus-visible,.uc-x:focus-visible,.uc-back:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media (pointer:fine){.uc-btn:active,.uc-x:active{transform:scale(.97)}}
@media (max-width:899px){
  .uc{align-items:end;padding:0}
  .uc-box{width:100%;border-radius:12px 12px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
  .uc-foot .uc-btn{flex:1 1 auto;min-height:38px;white-space:normal}
  .uc-foot .uc-back{flex:0 0 100%;margin:0 0 2px;text-align:left}
}
