/* Lunisc — unified, accessible file pickers. 2026-10-17 */
/* The browser retains the real native file input, including drag/drop and multi-select. */
input[type="file"]:not([hidden]) {
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #d6e0eb;
  border-radius:10px;
  padding:7px;
  background:#f8fafc;
  color:#475467;
  font:inherit;
  font-size:11.5px;
  line-height:1.5;
}
input[type="file"]::file-selector-button {
  min-height:34px;
  margin-inline-end:10px;
  padding:6px 14px;
  border:1px solid #2d60a1;
  border-radius:8px;
  background:#2d60a1;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease;
}
input[type="file"]:hover::file-selector-button {background:#214c80;border-color:#214c80}
input[type="file"]:focus-visible {outline:3px solid rgba(45,96,161,.25);outline-offset:2px}
input[type="file"]:disabled {opacity:.55;cursor:not-allowed}
/* Project forms previously force height:39px on ALL inputs, clipping a native picker. */
.project-editor input[type="file"],
.project-owner-file-picker input[type="file"],
.research-file-drop input[type="file"]:not([hidden]):not(.lunisc-visually-hidden),
.studybag-upload-form input[type="file"] {
  height:auto;
  min-height:48px;
  max-width:100%;
  padding:6px;
}
.project-file-drop input[type="file"],
.project-owner-file-picker input[type="file"] {flex:1 1 220px; width:auto;}
/* Hidden-upload dropzones: add a visible branded action without a nested button. */
label.studybag-file-drop,
.research-editor-page label.research-file-drop {position:relative; padding:16px 12px;}
label.studybag-file-drop::after,
.research-editor-page label.research-file-drop::after {
  content:"＋ Choose files";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin-top:5px;
  padding:5px 14px;
  border-radius:8px;
  background:#2d60a1;
  color:white;
  font-size:11px;
  font-weight:700;
  line-height:1.4;
  pointer-events:none;
}
html[lang="ar"] label.studybag-file-drop::after,
html[lang="ar"] .research-editor-page label.research-file-drop::after {content:"＋ اختيار الملفات";}
label.studybag-file-drop:hover,
.research-editor-page label.research-file-drop:hover {border-color:#2d60a1; background:#f5f9fd;}
label.studybag-file-drop:focus-visible,
label.studybag-file-drop:focus-within,
.research-editor-page label.research-file-drop:focus-visible,
.research-editor-page label.research-file-drop:focus-within {outline:3px solid rgba(45,96,161,.23);outline-offset:2px;}
@media(max-width:680px) {
  input[type="file"]::file-selector-button {margin-inline-end:6px;padding:6px 9px;font-size:10.5px}
  .project-file-drop,.project-owner-file-picker {align-items:stretch;}
  .project-file-drop input[type="file"],.project-owner-file-picker input[type="file"] {width:100%;flex:1 1 auto;}
}
