.tb-upload{display:grid;gap:.4rem;margin:.35rem 0 .8rem;min-width:0}.tb-upload-actions{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.tb-upload .tb-upload-actions input,.tb-camera button{appearance:none;position:static!important;opacity:1!important;inset:auto!important;display:inline-block!important;width:auto!important;height:auto!important;min-height:44px;padding:.5rem 1rem;margin:0;border:1px solid #a9b4a6;border-radius:.6rem;background:#f3f6ef;color:#203422;font:600 .94rem/1.35 Roboto,system-ui,sans-serif;cursor:pointer}
.tb-upload-actions input:focus-visible,.tb-upload:focus-visible,.tb-camera button:focus-visible,.tb-upload.tb-drag{outline:2px solid #678236;outline-offset:3px}.tb-upload [aria-live=polite]{overflow-wrap:anywhere}.tb-upload [aria-live=polite]:empty{display:none}.tb-upload-actions input:disabled{opacity:.55!important;cursor:default}
input.tb-file-source{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important;min-height:0!important}
.tb-old-pick{min-height:0!important;padding:.25rem 0!important;border:0!important;background:transparent!important}.tb-old-pick svg{display:none}
.tb-camera{max-width:min(92vw,36rem);padding:1rem;border:0;border-radius:1rem;background:#fcfdf9;color:#17281c}.tb-camera::backdrop{background:#0009}.tb-camera video{max-width:100%;max-height:60vh}.tb-camera [hidden]{display:none!important}
.tb-upload-previews{display:flex;flex-wrap:wrap;gap:.6rem}.tb-upload-previews:empty{display:none}
.tb-upload-previews canvas,.tb-stored-file img{display:block;max-width:100%;max-height:11rem;width:auto;height:auto;border:1px solid #aebdab;border-radius:.5rem;background:white}
.tb-stored-file{display:flex;flex-wrap:wrap;gap:.65rem 1rem;align-items:center;padding:.75rem 0;border-bottom:1px solid #d0dbce}
.tb-stored-file a{overflow-wrap:anywhere;min-width:0}.tb-stored-file img{max-height:6rem}.tb-stored-file button{margin-left:auto}

/* A single trigger; the three sources appear only when the trigger is opened. */
html body .tb-upload{gap:.6rem;max-width:40rem}
html body :is(label,input)[hidden]+.tb-upload,.tb-upload .tb-upload-choices[hidden]{display:none!important}
html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice){box-sizing:border-box;border:1px solid #a5b2a3;border-radius:.65rem;color:#213127;background:#edf1e8;margin:0;padding:.7rem .9rem;font:600 .95rem/1.3 Roboto,system-ui,sans-serif;cursor:pointer;box-shadow:none}
html body .tb-upload .tb-upload-toggle{display:flex;align-items:center;gap:.7rem;min-height:49px;width:100%;text-align:left}
html body .tb-upload .tb-upload-toggle span{flex:1}
html body .tb-upload .tb-upload-icon{display:block;width:1.4rem;height:1.4rem;flex:none}
html body .tb-upload .tb-upload-chevron{width:1.13rem;height:1.13rem}
html body .tb-upload [aria-expanded=true] .tb-upload-chevron{transform:rotate(180deg)}
html body .tb-upload .tb-upload-choices:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
html body .tb-upload .tb-upload-choice{min-width:0;min-height:67px;display:grid;place-items:center;align-content:center;gap:.35rem;padding:.5rem .2rem;text-align:center;background:#fafbf8}
html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice):hover:not(:disabled){background:#e4ecda;border-color:#758b6d}
html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice):focus-visible{outline:2px solid #678236;outline-offset:3px}
html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice):disabled{opacity:.55;cursor:default}
.tb-camera .tb-upload-actions button{appearance:none;min-height:44px;padding:.5rem .85rem;border:1px solid #a9b4a6;border-radius:.6rem;background:#f3f6ef;color:#203422;font:600 .94rem/1.35 Roboto,system-ui,sans-serif}

@media screen {
  .tb-camera { color-scheme:dark; background-color:#171b1c; color:#f1f3ef }
  .tb-upload .tb-upload-actions input,.tb-camera .tb-upload-actions button,.tb-camera button,html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice) { background-color:#252a2b; color:#f1f3ef; border-color:#667172 }
  html body .tb-upload .tb-upload-choice { background-color:#171b1c }
  html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice):hover:not(:disabled) { background-color:#303622; color:#f1f3ef; border-color:#cedc00 }
  .tb-upload-actions input:focus-visible,.tb-upload:focus-visible,.tb-camera button:focus-visible,.tb-upload.tb-drag,html body .tb-upload :is(.tb-upload-toggle,.tb-upload-choice):focus-visible { outline-color:#cedc00 }
  .tb-stored-file,.tb-stored-file img,.tb-upload-previews canvas { border-color:#343b3d }
}
