/* Shared file picker for public, customer and admin forms. */
.ks-file-control { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; margin-top:7px; padding:7px; border:1px solid var(--color-border,#d8e2ee); border-radius:12px; background:var(--color-surface,#fff); transition:border-color .18s ease,box-shadow .18s ease; }
.ks-file-control:focus-within { border-color:var(--color-primary,#0b78df); box-shadow:0 0 0 4px rgba(14,165,233,.13); }
.ks-file-native { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.ks-file-pick,.ks-file-clear { appearance:none; min-height:38px!important; border-radius:9px!important; font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.ks-file-pick { padding:8px 13px; border:0; color:#fff; background:linear-gradient(135deg,#0866bd,#0b8ff3); box-shadow:0 7px 18px rgba(11,120,223,.18); }
.ks-file-status { min-width:0; color:var(--color-muted,#64748b); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.ks-file-status strong { display:block; color:var(--color-text,#152033); font-size:12px; }
.ks-file-control.is-uploading .ks-file-status strong { color:#a16207; }
.ks-file-control.is-success .ks-file-status strong { color:#047857; }
.ks-file-control.is-error .ks-file-status strong { color:#b42318; }
.ks-file-clear { width:38px; padding:0; color:#b42318; background:#fff1f0; border:1px solid #ffd1cc; }
.ks-file-clear[hidden] { display:none!important; }
[data-theme="dark"] .ks-file-control { border-color:rgba(148,163,184,.25); background:rgba(15,34,61,.88); }
[data-theme="dark"] .ks-file-status strong { color:#e7f0fb; }
[data-theme="dark"] .ks-file-clear { color:#fecaca; border-color:rgba(248,113,113,.3); background:rgba(127,29,29,.32); }
@media(max-width:560px) { .ks-file-control { grid-template-columns:minmax(0,1fr) auto; } .ks-file-pick { grid-column:1/-1; } }
