*{box-sizing:border-box}body{margin:0;font:14px "Segoe UI",Arial,sans-serif;color:#25364b;background:#f6f8fc}a{color:#1764b3;text-decoration:none}a:hover{text-decoration:underline}.top{height:70px;background:white;border-bottom:1px solid #e4eaf1;display:flex;justify-content:space-between;align-items:center;padding:0 34px}.brand{font-size:21px;color:#173d72}.brand-icon{display:inline-block;background:#15549a;color:white;border-radius:7px;padding:5px 9px;margin-right:9px}.top-right{display:flex;align-items:center;gap:25px;color:#667789;font-size:12px}.top-right form{margin:0}.text-btn{border:0;background:none;color:#135898;cursor:pointer}.shell{display:flex;min-height:calc(100vh - 70px)}aside{width:242px;background:white;border-right:1px solid #e2e9f2;padding:26px 15px;flex-shrink:0}aside a,aside .account-tag{display:block;padding:13px 18px;color:#4a6078;border-radius:8px;margin:3px 0}aside a.active{background:#eaf3fe;color:#155ca4;font-weight:650}.aside-label{font-size:10px;letter-spacing:2px;color:#9aabbc;margin:15px 18px 10px}.main{width:100%;padding:38px 46px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#1764ae}.heading h1{font-size:29px;margin:5px 0 8px}.muted{color:#8090a2;margin:7px 0 24px}.upload,.folder-form{display:flex;align-items:center;gap:12px;margin:18px 0}.upload{background:white;border:1px solid #e0e9f3;border-radius:9px;padding:15px}.button{border:0;border-radius:7px;background:#155ba6;color:white;display:inline-block;text-align:center;padding:12px 18px;font-weight:600;cursor:pointer;font:inherit}.button:hover{background:#104c88;text-decoration:none}.button.secondary{background:white;color:#155ba6;border:1px solid #b5cbe0}.table-wrap{background:#fff;border:1px solid #e1e8f0;border-radius:11px;overflow:auto;margin-top:20px}table{border-collapse:collapse;width:100%}th{font-size:11px;letter-spacing:1px;text-transform:uppercase;background:#f9fbfe;color:#8799a9;text-align:left}td,th{padding:17px 20px;border-bottom:1px solid #edf1f6}tr:last-child td{border-bottom:0}.file-icon{color:#1e6eb6;font-size:20px;margin-right:9px}.empty{text-align:center;color:#9aabbc;padding:50px}.folder-list{display:flex;gap:8px;margin-top:10px}.folder-chip{padding:12px;border-radius:7px;border:1px solid #d5e0ec;background:white}.folder-form input{max-width:250px}.folder-form button,.inline button{padding:7px 12px;border:1px solid #ccdae9;background:white;border-radius:6px;cursor:pointer}.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{width:440px;background:white;border:1px solid #e3eaf2;box-shadow:0 16px 50px #233f5810;padding:37px;border-radius:14px}.auth-card h1{font-size:25px;margin:20px 0 8px}.login-brand{font-size:23px;color:#164e91}.login-panel{border:1px solid #dfe7f0;border-radius:9px;padding:18px;margin:14px 0}.login-panel h3{margin:0}.login-panel p{color:#667789;line-height:1.5}.login-panel .button{width:100%}label{font-size:12px;display:block;margin:15px 0;font-weight:650}input{border:1px solid #ccd7e5;border-radius:6px;padding:12px;font:inherit}label input{display:block;width:100%;margin-top:7px}.auth-card form .button{width:100%;margin-top:13px}.share-page{background:white;max-width:680px;margin:40px auto;padding:38px;border:1px solid #e5ebf1;border-radius:12px}.share-page li{padding:10px}.inline{display:inline}.notice{background:#e5f3ff;padding:12px 25px;border-bottom:1px solid #aed5ff;color:#174a78}@media(max-width:720px){aside{width:170px}.main{padding:20px}.top{padding:0 15px}.top-right span{display:none}.upload{flex-wrap:wrap}}
.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:90px;height:48px;object-fit:contain;background:#090909;border-radius:5px;padding:5px}.auth-logo{display:block;width:180px;height:115px;object-fit:contain;background:#000;border-radius:8px;padding:12px;margin:0 auto 14px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:22px}.collection-card{background:white;border:1px solid #e0e9f3;border-radius:12px;padding:22px;display:block;color:#274967}.collection-card h3{margin:8px 0}.collection-card .tag{font-size:11px;color:#527394}.panel{background:white;border:1px solid #e0e9f3;padding:20px;border-radius:10px;margin:16px 0}.inline-fields{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.inline-fields input,.inline-fields select{padding:10px;max-width:260px;border:1px solid #ccd7e5;border-radius:6px}.inline-fields label{margin:0}.inline-fields .button{padding:10px 14px}.note{font-size:12px;color:#6a7f91}.pill{background:#e9f2ff;border-radius:20px;padding:4px 10px;font-size:11px;color:#225d96}


/* Basic Fun FileRun — branded sign-in screen (v0.3.2). Scoped to /login. */
.bf-login{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(440px,.97fr);background:#fff;color:#172235;font-family:"Segoe UI",Arial,sans-serif}
.bf-login-hero{background:#09131f;color:white;position:relative;overflow:hidden;min-height:680px;display:flex;flex-direction:column;justify-content:space-between;padding:52px clamp(32px,5vw,88px) 35px}
.bf-login-hero:before{content:"";position:absolute;width:580px;height:580px;border:1px solid #ffffff18;border-radius:50%;right:-310px;bottom:4%;box-shadow:0 0 0 105px #ffffff06,0 0 0 210px #ffffff04;pointer-events:none}
.bf-login-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 0 90%,#067cb620,transparent 55%);pointer-events:none}
.bf-hero-content,.bf-hero-footer{position:relative;z-index:1}.bf-logo-surface{width:172px;height:114px;display:flex;align-items:center;justify-content:center;margin-bottom:80px}.bf-logo-surface img{width:100%;height:100%;object-fit:contain}
.bf-hero-kicker,.bf-welcome-kicker,.bf-login-section-label{font-size:11px;font-weight:750;letter-spacing:2px}.bf-hero-kicker{color:#c8d5e3;display:flex;align-items:center;gap:11px}.bf-kicker-dot{width:7px;height:7px;border-radius:50%;background:#00acee;box-shadow:0 0 0 5px #00acee22}
.bf-login-hero h1{color:#fff;font-weight:750;font-size:clamp(46px,4.5vw,76px);line-height:1.09;letter-spacing:-3px;margin:22px 0 22px}.bf-login-hero h1 span{color:#05aee9}.bf-hero-description{font-size:16px;line-height:1.8;color:#a9b9cb;max-width:485px;margin:0}.bf-hero-lines{display:flex;gap:7px;margin-top:55px}.bf-hero-lines i{display:block;width:43px;height:5px;border-radius:4px;background:#00a8e4}.bf-hero-lines i:nth-child(2){background:#8dc63f}.bf-hero-lines i:nth-child(3){background:#fff130}.bf-hero-lines i:nth-child(4){background:#ed1c24}
.bf-hero-footer{display:flex;justify-content:space-between;gap:10px;color:#728499;font-size:10px;letter-spacing:1.1px}
.bf-login-form-side{display:flex;flex-direction:column;padding:38px clamp(26px,4vw,78px) 30px;min-width:0}.bf-login-topline{display:flex;align-items:center;justify-content:space-between}.bf-protected-label{font-size:10px;color:#718198;font-weight:700;letter-spacing:1.35px}.bf-lock-icon{font-size:9px;color:#1c9b6b;margin-right:5px}.bf-app-name{font-size:21px;color:#123252;font-weight:760;letter-spacing:-.6px}
.bf-login-inner{width:100%;max-width:435px;margin:auto; padding:60px 0}.bf-welcome-kicker{color:#1985c0}.bf-login-inner h2{font-size:clamp(34px,3vw,44px);letter-spacing:-1.8px;line-height:1.12;margin:14px 0;color:#172235}.bf-heading-period{color:#00acee}.bf-welcome-description{color:#748196;line-height:1.75;font-size:15px;margin:0 0 40px}.bf-login-section-label{color:#728196;margin:0 0 13px;font-size:10px;letter-spacing:1.5px}.bf-login-primary,.bf-login-guest{height:58px;display:flex;align-items:center;gap:14px;padding:0 17px;border-radius:9px;text-decoration:none!important;font-weight:700;transition:background .15s,border-color .15s,transform .15s}.bf-login-primary:hover,.bf-login-guest:hover{transform:translateY(-1px)}.bf-login-primary:focus-visible,.bf-login-guest:focus-visible,.bf-register-help a:focus-visible{outline:3px solid #00acee;outline-offset:3px}.bf-login-primary{color:white;background:#1363a7;box-shadow:0 8px 20px #1363a71b}.bf-login-primary:hover{background:#0a508e;color:white}.bf-btn-arrow{margin-left:auto;font-size:21px;font-weight:400}.bf-ms-logo{display:grid;grid-template-columns:repeat(2,9px);grid-template-rows:repeat(2,9px);gap:2px;flex:none}.bf-ms-logo i:nth-child(1){background:#f25022}.bf-ms-logo i:nth-child(2){background:#7fba00}.bf-ms-logo i:nth-child(3){background:#00a4ef}.bf-ms-logo i:nth-child(4){background:#ffb900}.bf-method-help{font-size:12px;color:#7d8a9b;margin:12px 0 26px}.bf-login-divider{height:1px;background:#e4e9ef;position:relative;margin:35px 0}.bf-login-divider span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:0 15px;background:#fff;color:#9aa6b5;font-size:10px;font-weight:750;letter-spacing:1.5px}.bf-login-guest{border:1px solid #dce3ec;color:#243951;background:#fff}.bf-login-guest:hover{background:#f5f9fd;border-color:#9abdd9;color:#174c7b}.bf-guest-icon{display:grid;place-items:center;width:30px;height:30px;background:#eef5fc;color:#146caa;border-radius:7px;font-size:24px;font-weight:500;flex:none}.bf-register-help{margin:19px 0 35px;color:#7b8a9e;font-size:13px;text-align:center}.bf-register-help a{font-weight:720;color:#176bb0}.bf-access-note{display:flex;gap:13px;align-items:flex-start;background:#f5f8fc;border:1px solid #e8edf5;border-radius:9px;padding:16px;color:#76869a;font-size:12px;line-height:1.65}.bf-access-note span:first-child{color:#1975b6;font-size:18px;line-height:1.2}.bf-login-footer{display:flex;justify-content:space-between;gap:14px;color:#9ba7b6;font-size:11px}
@media(max-width:950px){.bf-login{grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}.bf-login-hero{padding:38px 32px}.bf-login-hero h1{font-size:52px}.bf-logo-surface{margin-bottom:65px}}@media(max-width:740px){.bf-login{display:block}.bf-login-hero{min-height:0;padding:23px 26px 21px}.bf-logo-surface{width:110px;height:70px;margin:0}.bf-hero-kicker,.bf-login-hero h1,.bf-hero-description,.bf-hero-lines,.bf-hero-footer{display:none}.bf-login-form-side{min-height:calc(100vh - 114px);padding:22px 26px 20px}.bf-login-inner{padding:50px 0}.bf-login-inner h2{font-size:37px}.bf-login-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){.bf-login-primary,.bf-login-guest{transition:none}.bf-login-primary:hover,.bf-login-guest:hover{transform:none}}

/* Basic Fun Library v0.3.3: larger brand artwork, clean sign-in without decorative bullets. */
.bf-logo-surface{width:290px;height:186px;margin-bottom:58px;justify-content:flex-start}
.bf-logo-surface img{width:100%;height:100%;object-fit:contain;object-position:left center}
.bf-hero-kicker{display:block}
.bf-access-note{display:block}
.bf-login-primary,.bf-login-guest{gap:14px}
@media(max-width:950px){.bf-logo-surface{width:245px;height:157px;margin-bottom:48px}}
@media(max-width:740px){.bf-logo-surface{width:186px;height:120px;margin:0}.bf-login-hero{padding:16px 26px 14px}}

/* v0.3.4 — Digital illustration on the LEFT login panel only.
   No login routes, form content, or permissions are changed. */
.bf-login-hero {
  background-color:#071420;
  background-image:linear-gradient(90deg,rgba(5,17,30,.70) 0%,rgba(5,17,30,.48) 48%,rgba(5,17,30,.06) 100%),url('/assets/library-digital-bg.svg');
  background-position:center,center;
  background-size:cover,cover;
  background-repeat:no-repeat;
}
.bf-login-hero::before,.bf-login-hero::after{display:none}
.bf-hero-content,.bf-hero-footer{position:relative;z-index:1}
.bf-login-hero h1,.bf-hero-description{text-shadow:0 2px 18px rgba(0,0,0,.36)}
@media(max-width:740px){.bf-login-hero{background-position:center,center 28%;background-size:cover,cover}}

/* v0.4 — Basic Fun Library workspace and drag-and-drop upload styles */
.top{min-height:76px;height:auto;padding:10px 28px}.brand{gap:14px;font-size:19px}.brand-logo{background:transparent!important;padding:0!important;border-radius:0!important;width:75px;height:53px;object-fit:contain}.brand strong{font-weight:750;color:#153d69}
.library-drop-upload{display:block;padding:0;border:0;background:transparent;margin:22px 0}.library-drop-target{position:relative;display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;background:#fff;border:2px dashed #a9c6e3;border-radius:15px;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;text-align:center}
.library-drop-target:hover,.library-drop-target:focus-visible,.library-drop-target.is-dragover{border-color:#176cbb;background:#f0f8ff;box-shadow:0 0 0 4px rgba(23,108,187,.08);outline:0}
.library-drop-symbol{width:50px;height:50px;border-radius:12px;background:#e8f3ff;color:#155fa8;display:grid;place-items:center;font-size:29px;font-weight:bold}
.library-drop-title{font-size:17px;font-weight:700;color:#1b3b5b}.library-drop-subtitle{font-size:13px;color:#71849a}.library-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.library-picker-button{pointer-events:none;background:#155fa8;color:white;font-weight:650;font-size:13px;padding:10px 19px;border-radius:7px;margin-top:5px}
.library-upload-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:13px}.library-upload-list{flex:1 1 300px;color:#456078;font-size:12px;overflow-wrap:anywhere}.library-upload-list .upload-item{padding:6px 0;border-bottom:1px solid #e4ebf5}.library-upload-submit{margin-left:auto}.library-upload-cancel{border:1px solid #cbd9e6;background:#fff;color:#355878;border-radius:7px;padding:10px 16px;cursor:pointer}
.library-drop-upload.is-uploading .library-drop-target{pointer-events:none;opacity:.65}
.admin-mini-button{border:1px solid #bdcfe2;border-radius:6px;padding:7px 11px;background:#fff;color:#155a9c;cursor:pointer}
@media(max-width:720px){.top{padding:10px 16px}.brand-logo{width:64px;height:45px}.brand{font-size:16px}.library-drop-target{min-height:190px}.library-upload-submit{margin-left:0}.shell{display:block}aside{width:100%;border-bottom:1px solid #e2e9f2}.main{padding:22px 15px}}

/* v0.5 administration layout */
.admin-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:23px;margin-top:22px;align-items:start}.admin-section-nav{background:#fff;border:1px solid #e0e9f3;border-radius:12px;padding:12px}.admin-group-label{padding:15px 11px 6px;font-size:10px;color:#8395a8;letter-spacing:1.5px;text-transform:uppercase;font-weight:700}.admin-section-nav a{display:block;padding:10px 12px;border-radius:7px;color:#47607a}.admin-section-nav a.selected{background:#eaf3ff;color:#115ea4;font-weight:700}.admin-settings-content{min-width:0}.admin-setting-field{display:block;margin:14px 0 20px;font-size:13px;color:#344e68}.admin-setting-field input,.admin-setting-field select{display:block;margin-top:7px;width:min(100%,560px);padding:12px;border:1px solid #cbd7e4;border-radius:7px;background:#fff;color:#25364b}.admin-settings-content .panel{margin-top:0;margin-bottom:15px}.admin-settings-content select{padding:10px;border:1px solid #cbd7e4;border-radius:7px;background:white}@media(max-width:790px){.admin-layout{grid-template-columns:1fr}.admin-section-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-group-label{grid-column:1/-1}}

.theme-green .button,.theme-green .library-picker-button{background:#4d8b22}.theme-red .button,.theme-red .library-picker-button{background:#bb2437}.theme-green aside a.active{color:#3d7d20;background:#eef8e8}.theme-red aside a.active{color:#a42131;background:#fff0f2}

/* v0.5.1 authenticated file actions */
.file-delete-button{background:transparent;border:0;color:#b42318;text-decoration:underline;padding:0;font:inherit;cursor:pointer}.file-delete-button:hover{color:#7a271a}.inline{display:inline}.file-delete-confirm{font-size:12px;color:#64748b}.file-delete-confirm input{vertical-align:middle}.panel select{display:block;min-width:220px;max-width:100%;margin:8px 0 12px;padding:10px;border:1px solid #cbd5e1;border-radius:7px}

/* v0.5.2 — compact file action menus, folder cards, safe confirmation screens */
.table-wrap{overflow:visible;margin-top:18px;border-radius:14px;box-shadow:0 5px 22px rgba(23,49,82,.035)}
.table-wrap table{table-layout:auto}.table-wrap td{vertical-align:middle;padding:14px 19px;font-size:13px;color:#344b64}.table-wrap th{padding:15px 19px}
.library-file-row:hover{background:#f8fbff}.library-file-row td:last-child{width:175px}
.library-action-menu{position:relative;width:max-content;min-width:116px}.library-action-menu summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;border:1px solid #d6e2ed;border-radius:8px;background:#fff;color:#294b6b;padding:9px 12px;font-weight:600;user-select:none;white-space:nowrap}
.library-action-menu summary::-webkit-details-marker{display:none}.library-action-menu summary:hover,.library-action-menu[open] summary{background:#edf5ff;border-color:#94bae0}.library-action-menu summary:focus-visible{outline:3px solid #86c7ff;outline-offset:2px}
.library-action-options{position:absolute;z-index:50;right:0;top:calc(100% + 5px);min-width:185px;display:grid;padding:6px;background:white;border:1px solid #dbe5ef;box-shadow:0 12px 28px rgba(25,49,77,.14);border-radius:10px}
.library-action-options a{display:block;padding:10px 12px;border-radius:6px;color:#2c4660;white-space:nowrap;font-weight:500}.library-action-options a:hover{background:#f0f6fd;text-decoration:none}.library-action-options .is-danger{color:#b42330;border-top:1px solid #e9edf2;margin-top:3px;padding-top:13px}.library-action-options .is-danger:hover{background:#fff2f3}
.folder-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:18px 0 12px}.library-folder-card{display:flex;justify-content:space-between;align-items:center;gap:8px;background:white;border:1px solid #dde7f0;border-radius:11px;padding:11px 11px 11px 14px;min-width:0}.library-folder-card:hover{border-color:#9fc2e5;box-shadow:0 4px 14px #1636550b}.library-folder-link{display:flex;gap:9px;align-items:center;min-width:0;overflow-wrap:anywhere;font-weight:600;color:#284b6d}.library-folder-link span{font-size:20px}.library-folder-card .library-action-menu{min-width:0}.library-folder-card .library-action-menu summary{padding:7px 8px;font-size:12px}
.library-confirm-card{max-width:620px;margin:30px auto;background:#fff;border:1px solid #dfe8f1;border-radius:16px;padding:34px;box-shadow:0 14px 40px #17375310}.library-confirm-card h1{margin:15px 0;font-size:28px}.library-confirm-card p{line-height:1.7;color:#5c7086}.library-confirm-card select{display:block;width:100%;padding:12px;margin:9px 0 18px;border:1px solid #cbd7e4;border-radius:8px;background:#fff}.library-confirm-check{display:flex;align-items:flex-start;gap:10px;padding:13px;background:#fff6f5;border-radius:8px;font-weight:500}.library-confirm-check input{flex:none;margin:2px 0}.library-warning-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#ffebe9;color:#b42318;font-size:24px;font-weight:750;margin-top:24px}.library-danger-button{background:#bc2a32;color:white;border:0;border-radius:8px;padding:12px 17px;font-weight:650;cursor:pointer;margin-top:15px}.library-danger-button:hover{background:#9d1f28}
@media(max-width:760px){.table-wrap{overflow-x:auto}.table-wrap table{min-width:690px}.folder-list{grid-template-columns:1fr}.library-confirm-card{padding:22px;margin:12px auto}}

/* Secure file preview */
.bf-preview-main{min-width:0}.bf-preview-top{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:20px}.bf-preview-top h1{overflow-wrap:anywhere}.bf-preview-panel{background:#fff;border:1px solid #dde5f0;border-radius:14px;padding:20px;min-height:280px;box-shadow:0 8px 25px rgba(15,35,70,.04)}.bf-preview-frame{border:0;width:100%;height:min(74vh,850px);min-height:480px;background:#f4f7fb}.bf-preview-image-frame{display:flex;align-items:center;justify-content:center;min-height:330px;background:#f6f8fb;border-radius:12px}.bf-preview-image-frame img{max-width:100%;max-height:75vh;object-fit:contain}.bf-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;color:#182a3e;border-radius:10px;padding:18px;max-height:75vh;overflow:auto;font-size:13px;line-height:1.65}.bf-preview-table{overflow:auto;max-height:72vh}.bf-preview-table table{width:100%;border-collapse:collapse}.bf-preview-table td,.bf-preview-table th{padding:10px 14px;border-bottom:1px solid #e8eef5;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;min-width:110px}@media(max-width:700px){.bf-preview-panel{padding:10px}.bf-preview-frame{min-height:370px}}

/* Basic Fun Library v0.5.5 — refined deletion confirmation (file and folder).
   CSS-only; preserves existing POST, CSRF, authorization and confirmation fields. */
.library-confirm-card {
  width:min(100%,660px);
  max-width:660px;
  margin:clamp(18px,4vh,54px) auto;
  padding:clamp(24px,3.4vw,42px);
  border:1px solid #e1e8f1;
  border-radius:20px;
  background:#fff;
  box-shadow:0 16px 55px rgba(21,47,78,.07);
  color:#17324d;
}
.library-confirm-card > a:first-child {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:24px;
  color:#205d97;
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}
.library-confirm-card > a:first-child:hover{text-decoration:underline;color:#114776}
.library-confirm-card .library-warning-icon {
  width:52px;
  height:52px;
  margin:0 0 20px;
  border-radius:15px;
  background:#fff0ed;
  color:#c32f30;
  font-size:25px;
  box-shadow:inset 0 0 0 1px #ffdfdc;
}
.library-confirm-card h1 {
  margin:0 0 13px;
  font-size:clamp(25px,2.6vw,32px);
  line-height:1.2;
  letter-spacing:-.65px;
  color:#183450;
}
.library-confirm-card p {
  max-width:56ch;
  margin:0 0 26px;
  color:#576d83;
  line-height:1.75;
  font-size:14px;
  overflow-wrap:anywhere;
}
.library-confirm-card p strong {color:#213d5d;font-weight:700;overflow-wrap:anywhere}
.library-confirm-card form {display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin:0}
.library-confirm-card label.library-confirm-check {
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  justify-content:flex-start;
  gap:13px;
  width:100%;
  margin:0;
  padding:17px 19px;
  border:1px solid #f4d8d6;
  border-radius:12px;
  background:#fff8f6;
  color:#374a60;
  font-size:13px;
  line-height:1.55;
  font-weight:550;
  cursor:pointer;
  text-align:left;
  overflow-wrap:anywhere;
}
/* Override global label input { display:block; width:100%; margin-top:7px } */
.library-confirm-card label.library-confirm-check input[type="checkbox"] {
  display:inline-block;
  flex:0 0 18px;
  width:18px;
  min-width:18px;
  max-width:18px;
  height:18px;
  margin:1px 0 0;
  padding:0;
  border-radius:4px;
  accent-color:#b52b34;
  cursor:pointer;
}
.library-confirm-card label.library-confirm-check:focus-within {
  outline:3px solid rgba(31,111,190,.28);
  outline-offset:3px;
}
.library-confirm-card button.library-danger-button {
  margin:0;
  padding:12px 22px;
  min-height:44px;
  border:1px solid #b8222b;
  border-radius:9px;
  background:#bc2832;
  color:#fff;
  box-shadow:0 5px 12px rgba(188,40,50,.12);
  font-size:13px;
  font-weight:700;
  transition:background .14s ease,box-shadow .14s ease;
}
.library-confirm-card button.library-danger-button:hover {
  background:#9f1e29;
  box-shadow:0 6px 16px rgba(188,40,50,.17);
}
.library-confirm-card button.library-danger-button:focus-visible {
  outline:3px solid #8ac1f5;
  outline-offset:3px;
}
@media (max-width:720px) {
  .library-confirm-card {margin:16px auto;padding:24px 20px;border-radius:16px}
  .library-confirm-card label.library-confirm-check {padding:15px}
  .library-confirm-card button.library-danger-button {width:100%}
}
@media (prefers-reduced-motion:reduce){.library-confirm-card button.library-danger-button{transition:none}}

/* v0.5.6 Unified explorer */
.explorer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #dde6f0;border-radius:12px;padding:12px 15px;margin:20px 0 12px;box-shadow:0 3px 12px #14335408}
.explorer-btn{appearance:none;border:1px solid #d6e0ec;background:#fff;color:#284e72;border-radius:8px;padding:10px 15px;font:600 13px "Segoe UI",sans-serif;cursor:pointer;text-decoration:none}
.explorer-btn:hover{background:#f0f6ff;text-decoration:none}.explorer-primary{color:#fff;background:#1765b0;border-color:#1765b0}.explorer-primary:hover{background:#105494}
.explorer-toolbar-space{flex:1}.explorer-view-name{font-size:12px;color:#768aa0}.explorer-upload-area,.explorer-folder-area{display:none}.explorer-upload-area.is-open,.explorer-folder-area.is-open{display:block}.explorer-breadcrumb{display:inline-block;margin:12px 0;color:#356a9e}
.explorer-table{margin-top:12px;overflow:visible}.explorer-table th:first-child{width:38%}.explorer-table tbody tr:hover{background:#f6faff}.explorer-table td{padding:13px 16px}.explorer-item-name{display:inline-flex;align-items:center;gap:12px;font-size:13px;color:#273c58;overflow-wrap:anywhere}.explorer-item-name strong{font-weight:650}.explorer-folder-icon{display:grid;place-items:center;width:32px;height:30px;background:#e2f0ff;color:#145b9c;border-radius:7px;font-size:21px}.explorer-file-icon{display:grid;place-items:center;width:32px;height:30px;background:#eef3fa;color:#547092;border-radius:7px;font-size:20px}
.explorer-folder-row{background:#fbfdff}.explorer-size,.explorer-date,.explorer-owner{color:#8191a3;font-size:12px}.explorer-table .library-action-menu summary{padding:7px 11px;font-size:12px}
@media(max-width:760px){.explorer-table{overflow-x:auto}.explorer-table table{min-width:730px}.explorer-toolbar{gap:6px}.explorer-btn{padding:9px 11px}}

.explorer-upload-area:target,.explorer-folder-area:target{display:block}
.explorer-upload-area{display:block}
.explorer-upload-area .library-drop-target{min-height:165px;margin:0}
.explorer-upload-area .library-drop-upload{margin:8px 0 16px}
.explorer-folder-area{display:none}
.explorer-folder-area:target{display:block}

/* v0.5.7 – OneDrive-inspired workspace enhancement */
.bf-explorer-heading{margin-top:12px;margin-bottom:3px}
.bf-explorer-kicker{color:#627e9d;font-size:10px;font-weight:750;letter-spacing:1.4px}
.bf-explorer-crumb{margin-top:9px;font-size:12px;color:#75869b}.bf-explorer-crumb a{color:#1661aa;text-decoration:none}
.bf-drive-toolbar{position:relative;gap:7px;background:#fff;padding:13px;border-radius:10px;box-shadow:0 1px 3px #14253c08}
.bf-drive-toolbar .explorer-btn{white-space:nowrap;border-color:transparent;font-weight:600;padding:10px 12px}
.bf-drive-toolbar .explorer-btn:hover:not(:disabled){background:#eaf3ff}.bf-drive-toolbar .explorer-primary{background:#1766ac;color:#fff}
.bf-drive-toolbar .explorer-primary:hover{background:#10548c!important}.bf-drive-toolbar .explorer-btn:disabled{opacity:.4;cursor:not-allowed}
.bf-drive-toolbar .bf-delete-btn:not(:disabled){color:#ad2732}.bf-toolbar-divider{width:1px;height:26px;background:#d9e3ed;margin:0 4px}
.bf-selected-count{font-size:12px;font-weight:650;color:#2768a5;margin-right:8px}
.bf-drive-toolbar [aria-pressed="true"]{background:#eaf3ff;border-color:#c7ddf3}
.bf-explorer-filterbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 14px}
.bf-search-label{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dbe5ef;border-radius:8px;padding:5px 11px;min-width:220px;flex:1;max-width:400px;color:#597594}
.bf-search-label input{border:0!important;outline:0!important;min-width:0;flex:1;padding:5px!important;font-size:13px;background:transparent!important}
.bf-filter-group{display:flex;gap:5px}.bf-filter-group button{border:1px solid #dce5ef;background:#fff;color:#455b73;padding:8px 13px;border-radius:18px;font-size:12px;cursor:pointer}
.bf-filter-group button.is-active{border-color:#b9d5f0;background:#e9f4ff;color:#155c9d;font-weight:700}
.bf-sort-label{display:flex;align-items:center;gap:7px;color:#6c7f95;font-size:12px}.bf-sort-label select{border:1px solid #d9e2eb;border-radius:7px;background:#fff;padding:7px;font-size:12px}
.explorer-table{overflow:auto!important;background:#fff;border-radius:10px;border:1px solid #e1e8f1}
.explorer-table table{border-collapse:collapse;min-width:730px}.explorer-table thead{background:#f8fafc}
.explorer-table th{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#70859c;font-weight:700}
.explorer-table .bf-check-col{width:42px!important;min-width:42px;padding:9px 12px;text-align:center}
.explorer-table .bf-check-col input{width:16px;height:16px;accent-color:#1766ac;cursor:pointer}
.explorer-table .bf-is-selected{background:#eaf4ff!important}.explorer-table tbody tr[hidden]{display:none}
.explorer-table .bf-filter-empty td{padding:40px;text-align:center;color:#6b7e94}
.explorer-table tbody .explorer-item-name{font-weight:600;text-decoration:none;color:#213e60}.explorer-table tbody .explorer-item-name:hover{text-decoration:underline}
.explorer-table .library-action-menu summary{font-size:0;border:0!important;background:transparent!important;padding:8px!important;min-width:32px;text-align:center}
.explorer-table .library-action-menu summary::before{content:'•••';font-size:16px;letter-spacing:2px;color:#536e87}
.explorer-table .library-action-menu summary span{display:none}
.bf-grid-mode .explorer-table{border:0;background:transparent;overflow:visible!important}
.bf-grid-mode .explorer-table table,.bf-grid-mode .explorer-table tbody{display:block;min-width:0}
.bf-grid-mode .explorer-table thead{display:none}
.bf-grid-mode .explorer-table tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:12px}
.bf-grid-mode .explorer-table tbody tr.library-file-row{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto auto;align-items:start;border:1px solid #dce6f0;border-radius:12px;background:#fff;padding:14px;min-width:0;box-shadow:0 2px 5px #15385808}
.bf-grid-mode .explorer-table tbody tr.library-file-row:hover{border-color:#a9cbe9}
.bf-grid-mode .explorer-table td{padding:4px!important;border:0!important;min-width:0;white-space:normal}
.bf-grid-mode .explorer-table td.bf-check-col{grid-column:1;grid-row:1;width:28px!important;min-width:0}
.bf-grid-mode .explorer-table td:nth-child(2){grid-column:1/3;grid-row:2;overflow-wrap:anywhere}
.bf-grid-mode .explorer-table td:nth-child(3){grid-column:1/3;grid-row:3;color:#7c8ca0;font-size:11px}
.bf-grid-mode .explorer-table td:nth-child(4),.bf-grid-mode .explorer-table td:nth-child(5){display:none}
.bf-grid-mode .explorer-table td:last-child{grid-column:2;grid-row:1;justify-self:end}
.bf-grid-mode .explorer-table tbody tr[hidden]{display:none}
.bf-grid-mode .explorer-table .bf-filter-empty{grid-column:1/-1}
@media(max-width:720px){.bf-explorer-filterbar{align-items:stretch}.bf-search-label{max-width:none;width:100%}.bf-drive-toolbar{gap:3px}.bf-drive-toolbar .explorer-btn{padding:8px 9px}}


/* Basic Fun Library v0.5.9.2 — signed-in workspace branding (CSS only).
   This deliberately does not modify the login screen, PHP routes, or uploader. */
body:has(> header.top){background:#f5f8fc;min-height:100vh;}
body:has(> header.top) > header.top{
  background:linear-gradient(105deg,#06447f 0%,#0c62a6 55%,#1680c4 100%);
  border-bottom:1px solid rgba(255,255,255,.18);
  box-shadow:0 3px 12px rgba(4,46,89,.14);
  min-height:76px;height:auto;padding:12px clamp(16px,3vw,42px);
  gap:18px;color:#fff;
}
body:has(> header.top) > header.top .brand{color:#fff;min-width:0;gap:14px;}
body:has(> header.top) > header.top .brand strong{
  color:#fff;font-size:21px;font-weight:700;letter-spacing:.15px;
}
body:has(> header.top) > header.top .brand-logo{
  background:transparent!important;border-radius:0!important;
  width:99px;height:51px;object-fit:contain;padding:0!important;
  box-shadow:none!important;
}
body:has(> header.top) > header.top .top-right{color:#eef7ff;gap:18px;flex-wrap:wrap;justify-content:flex-end;}
body:has(> header.top) > header.top .top-right span{color:#eef7ff;font-size:12px;}
body:has(> header.top) > header.top .text-btn{
  color:#fff!important;background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.45)!important;
  padding:9px 15px!important;border-radius:8px;font-weight:650;
  transition:background .15s ease;
}
body:has(> header.top) > header.top .text-btn:hover{background:rgba(255,255,255,.25)!important;}
body:has(> header.top) > header.top .text-btn:focus-visible{outline:3px solid #ffe28a;outline-offset:3px;}
body:has(> header.top) .shell{min-height:calc(100vh - 148px);}
body:has(> header.top) .shell > .main{max-width:100%;min-width:0;}
/* Readable support footer after the workspace on every authenticated page.
   CSS-generated content is not a clickable mailto link. */
body:has(> header.top)::after{
  content:"Basic Fun Library  •  Need assistance? Email Basic Fun IT: itsupport@basicfun.com";
  display:block;box-sizing:border-box;
  color:#58718b;background:#fff;
  border-top:1px solid #dfebf6;
  padding:20px clamp(16px,3vw,44px);
  min-height:72px;font-family:"Segoe UI",Arial,sans-serif;
  font-size:12px;line-height:1.7;text-align:center;
}
@media(max-width:720px){
 body:has(> header.top) > header.top{padding:12px 14px;flex-wrap:wrap;}
 body:has(> header.top) > header.top .brand strong{font-size:17px;}
 body:has(> header.top) > header.top .brand-logo{width:75px;height:42px;}
 body:has(> header.top) > header.top .top-right span{display:block;overflow-wrap:anywhere;}
 body:has(> header.top)::after{padding:18px;font-size:11px;}
}

/* Basic Fun Library v0.5.9.4 — separate administrator-only navigation.
   Admin-only links are emitted by the server-side sidebar() authorization check.
   The heading is only generated when the first admin link is present. */
/* Admin navigation stays legible and visually grouped. */
body:has(> header.top) aside > a[href^="/admin/"] {
  overflow-wrap: anywhere;
}

/* v0.5.9.5: Native, non-clickable administrator heading. */
body:has(> header.top) aside > .aside-label { pointer-events:none; }
