*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#0f1216;color:#e6e8eb;min-height:100vh;display:flex;flex-direction:column}
.auth-2col, .layout, .profile-layout, body>main{flex:1}
.udrive-header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#151920;border-bottom:1px solid #242a33;position:fixed;top:0;left:0;right:0;z-index:1002;height:64px}
.udrive-header .brand{font-weight:700;letter-spacing:.4px;display:flex;align-items:center;gap:10px;color:#e6e8eb;text-decoration:none}
.udrive-header .brand img{height:40px;display:block}
.udrive-header .nav a{color:#cdd1d6;text-decoration:none;margin-left:14px}
.udrive-header .nav{overflow:visible}
.layout{display:grid;grid-template-columns:260px 1fr;height:calc(100vh - 64px);margin-top:64px}
.sidebar{border-right:1px solid #242a33;padding:14px;background:#12161c;display:flex;flex-direction:column}
.content{padding:16px;overflow:auto}
.card{background:#151920;border:1px solid #242a33;border-radius:10px;padding:16px}
.row{display:flex;gap:12px;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.btn{padding:8px 12px;border-radius:8px;border:1px solid #2c3440;background:#1a1f27;color:#d7dbe0;cursor:pointer}
.btn.primary{background:#2b59ff;border-color:#2b59ff;color:#fff}
.btn.danger{background:#d13c3c;border-color:#d13c3c;color:#fff}
.input{padding:8px 10px;border-radius:8px;border:1px solid #2c3440;background:#0d1117;color:#e6e8eb;width:100%}
.file-card{display:flex;flex-direction:column;gap:8px}
.thumb{width:100%;height:140px;border-radius:8px;background:#0d1117;border:1px solid #2c3440;display:flex;align-items:center;justify-content:center;overflow:hidden}
.thumb img,.thumb video{width:100%;height:100%;object-fit:cover}
.thumb img.icon{object-fit:contain;padding:12px}
.thumb img{cursor:pointer}
.file-card.selected{outline:2px solid #2b59ff;outline-offset:2px}
.folder-tile.selected{outline:2px solid #2b59ff;outline-offset:2px}
.dragging, .dragging *{cursor:grabbing !important}
.selection-rect{position:fixed;border:2px dashed #2b59ff;background:rgba(43,89,255,.08);z-index:1004;pointer-events:none}
.lightbox-overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;z-index:1000}
.lightbox-content{background:#0d1117;border:1px solid #2c3440;border-radius:10px;padding:10px;max-width:90vw;max-height:90vh}
.lightbox-content img{max-width:88vw;max-height:88vh;border-radius:8px;display:block}
.lightbox-content .spinner{width:36px;height:36px;border-radius:50%;border:3px solid #2c3440;border-top-color:#2b59ff;animation:spin 1s linear infinite;margin:20px auto}
@keyframes spin{to{transform:rotate(360deg)}}
.file-actions{display:none}
.footer{margin-top:16px;font-size:12px;color:#9aa0a6}
/* Audio player */
.audio-player{position:fixed;right:16px;bottom:16px;z-index:1002;background:#151920;border:1px solid #2c3440;border-radius:12px;padding:12px;width:min(360px,92vw);box-shadow:0 14px 32px rgba(0,0,0,.35);display:none}
.audio-player .ap-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.audio-player .ap-title{color:#e6e8eb;font-weight:600;font-size:14px;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audio-player .ap-close{border:none;background:transparent;color:#cdd1d6;cursor:pointer}
.audio-player audio{width:100%}
.audio-player .ap-msg{margin-top:8px;font-size:12px;color:#9aa0a6;display:none}
.audio-player audio::-webkit-media-controls-enclosure{background:#1a1f27;border-radius:12px}
.audio-player audio::-webkit-media-controls-panel{background:#1a1f27}
.audio-player audio::-webkit-media-controls-current-time-display,
.audio-player audio::-webkit-media-controls-time-remaining-display{color:#e6e8eb}
.audio-player .ap-close i{pointer-events:none}
/* Video modal eliminado (videos se descargan) */
form.inline{display:flex;gap:8px}
.folders a{display:block;padding:8px;border-radius:8px;color:#cdd1d6;text-decoration:none}
.folders a.active{background:#1a1f27}
.tree-root{margin:8px 0}
.tree-item{display:flex;flex-direction:column;margin:2px 0}
.tree-head{display:flex;align-items:center;gap:6px}
.tree-item>.tree-children{display:none;margin-left:16px}
.tree-item.expanded>.tree-children{display:block}
.tree-toggle{border:none;background:transparent;color:#cdd1d6;cursor:pointer;outline:none}
.tree-spacer{display:inline-block;width:20px}
.tree-item>a{color:#cdd1d6;text-decoration:none;padding:6px;border-radius:8px}
.tree-item>a.active{background:#1a1f27}
.sidebar .tree-root a,
.sidebar .tree-root a:visited{color:#cdd1d6;text-decoration:none}
.sidebar .tree-root a:hover{color:#ffffff}
.tree-head a{display:flex;align-items:center;gap:8px}
.folder-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px;border:none;background:transparent;text-decoration:none}
.folder-tile.card{background:#151920;border:1px solid #242a33;border-radius:10px;padding:16px}
.folder-tile:visited{color:inherit;text-decoration:none}
.folder-tile:focus{outline:none}
.grid .folder-tile, .grid .file-card{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.folder-tile:hover{background:#12161c;border-radius:10px}
.folder-icon{width:96px;height:96px;object-fit:contain}
.folder-name{color:#cdd1d6;text-align:center}
.modal-overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;z-index:1001}
.modal{background:linear-gradient(180deg,#151920 0%,#11161f 100%);border:1px solid #2c3440;border-radius:14px;padding:18px;box-sizing:border-box;width:90vw;max-width:520px;box-shadow:0 20px 40px rgba(0,0,0,.45)}
.modal-title{color:#e6e8eb;font-weight:700;font-size:18px;margin-bottom:12px}
.modal-body{color:#cdd1d6;margin-bottom:16px;line-height:1.5}
.modal .row{margin-bottom:10px}
.modal .row:last-child{margin-bottom:0}
.modal-actions{display:flex;justify-content:flex-end;gap:10px}
.filelist{margin-top:12px;border:1px dashed #2c3440;border-radius:10px;padding:10px;max-height:200px;overflow:auto}
.filelist-item{display:flex;justify-content:space-between;gap:8px;padding:6px 4px;border-radius:8px}
.filelist-item:nth-child(odd){background:#12161c}
.filelist-name{color:#cdd1d6;font-size:13px}
/* Auth */
.auth-wrap{display:flex;justify-content:center;align-items:center;min-height:calc(100vh - 64px);padding:24px}
.auth-card{background:linear-gradient(180deg,#151920 0%,#11161f 100%);border:1px solid #2c3440;border-radius:16px;box-shadow:0 20px 40px rgba(0,0,0,.45);width:min(460px,92vw);padding:24px}
.auth-logo{display:flex;justify-content:center;margin-bottom:8px}
.auth-logo img{height:40px}
.auth-title{font-weight:700;color:#e6e8eb;text-align:center;margin:8px 0 14px}
.auth-form .row{margin:10px 0}
.auth-form .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:6px}
.auth-msg{margin-top:10px;color:#9aa0a6;text-align:center}
body.light .auth-card{background:#ffffff;border-color:#e5e7eb;box-shadow:0 20px 40px rgba(0,0,0,.08)}
@media (max-width: 420px){
  .auth-card{width:96vw;padding:18px;border-radius:14px}
  .auth-logo img{height:32px}
}
/* Auth 2-column */
.auth-2col{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;min-height:calc(100vh - 64px)}
.auth-left{display:flex;align-items:center;justify-content:center;background:#0f1216}
.auth-panel{max-width:520px;width:92%;background:#fff;border-radius:18px;box-shadow:0 24px 48px rgba(0,0,0,.18);padding:26px;color:#0b0e13}
.auth-brand{display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.auth-brand img{height:64px}
.auth-brand .name{font-weight:700}
.auth-tabs{display:flex;background:#eef0f4;border-radius:12px;padding:4px;margin-bottom:16px}
.auth-tab{flex:1;text-align:center;padding:10px;border-radius:10px;cursor:pointer;color:#121417}
.auth-tab.active{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.06);font-weight:600}
.auth-sub{color:#6b7280;margin:-6px 0 14px}
.auth-input{display:flex;align-items:center;gap:10px;background:#f6f7fb;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.auth-input .input{background:transparent;border:none;color:#0b0e13}
.auth-cta{margin-top:10px}
.auth-cta .btn.primary{width:100%;padding:12px 14px;border-radius:12px;background:#2b59ff}
.auth-remember{display:flex;align-items:center;gap:8px;margin-top:8px;color:#6b7280}
.auth-forgot{margin-top:8px;text-align:right}
.auth-forgot a{color:#9aa0a6;text-decoration:none}
.auth-forgot a:hover{color:#cdd1d6}
.auth-social{display:flex;justify-content:center;gap:12px;margin:18px 0}
.auth-social .btn{border-radius:50%;width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center}
.auth-note{color:#6b7280;font-size:12px;text-align:center}
.auth-divider{display:flex;align-items:center;gap:8px;margin:16px 0}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:#e5e7eb}
.auth-divider span{color:#6b7280;font-weight:600}
.google-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:#1a1f27;border:1.5px solid #2c3440;color:#fff;border-radius:999px;padding:14px 16px;width:100%;text-decoration:none;font-weight:600}
.google-btn i.fa-google{font-size:20px;color:#fff}
.google-btn span{font-size:16px}
.google-btn:hover{background:#232a34}
.auth-right{display:block;background-position:center;background-size:cover;background-repeat:no-repeat}
.verify-layout .content{max-width:780px;margin:0 auto;padding:24px}
.verify-wrap{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 64px)}
.verify-card{background:#151920;border:1px solid #242a33;border-radius:14px;padding:24px;max-width:520px;width:92%;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.verify-icon{font-size:52px;color:#22c55e;margin-bottom:8px}
.verify-icon.warning{color:#f59e0b}
.verify-title{font-weight:700;color:#fff;margin-bottom:6px}
.verify-sub{color:#cdd1d6;margin-bottom:14px}
.verify-actions{display:flex;justify-content:center}
.promo-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.5);z-index:1000}
.promo-modal{background:#151920;border:1px solid #242a33;border-radius:16px;max-width:520px;width:92%;box-shadow:0 12px 34px rgba(0,0,0,.4);overflow:hidden}
.promo-head{display:flex;align-items:center;justify-content:space-between;background:#1a1f27;padding:14px}
.promo-head img{height:40px}
.promo-body{padding:18px;text-align:center}
.promo-body{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.promo-top-icon{height:90px}
.promo-title{color:#fff;font-weight:800;font-size:20px;margin-bottom:6px}
.promo-sub{color:#cdd1d6;margin-bottom:14px}
.promo-body .btn{margin-top:16px}
.promo-body a.btn{text-decoration:none}
.reset-card .verify-actions{gap:8px;margin-top:12px}
.verify-form{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}
.verify-form .field{display:flex;flex-direction:column;gap:6px;text-align:left}
.verify-form .field label{color:#9aa0a6;font-size:13px}
.verify-card .input{background:#0d1117;border:1px solid #2c3440;color:#e6e8eb;border-radius:10px}
@media (max-width: 880px){
  .auth-2col{grid-template-columns:1fr}
  .auth-right{display:none}
  .auth-panel{width:94%}
}
/* Profile layout override */
.profile-layout{display:block;height:auto;margin-top:64px}
.profile-layout .content{max-width:none;width:100%;margin:0;padding:24px}
/* Profile */
.profile-card{background:#151920;border:1px solid #242a33;border-radius:14px;padding:18px}
.profile-tabs{display:flex;gap:14px;border-bottom:1px solid #242a33;margin:-8px -18px 16px;padding:8px 18px}
.profile-tab{padding:8px 12px;border-radius:8px;color:#cdd1d6;cursor:pointer}
.profile-tab.active{background:#1a1f27;color:#fff}
.profile-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.profile-user{display:flex;align-items:center;gap:12px}
.avatar{width:48px;height:48px;border-radius:50%;background:#0d1117;border:1px solid #2c3440;display:flex;align-items:center;justify-content:center;color:#e6e8eb;font-weight:700}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{color:#9aa0a6;font-size:13px}
.profile-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
@media (max-width: 720px){
  .profile-grid{grid-template-columns:1fr}
}
.filelist-size{color:#9aa0a6;font-size:12px}
.context-menu{position:fixed;z-index:1000;background:#151920;border:1px solid #2c3440;border-radius:8px;min-width:180px;box-shadow:0 6px 24px rgba(0,0,0,.3);display:none}
.upload-tray{position:fixed;right:16px;bottom:16px;background:#151920;border:1px solid #2c3440;border-radius:12px;padding:12px;min-width:280px;max-width:360px;box-shadow:0 8px 28px rgba(0,0,0,.35)}
.upload-tray .tray-title{display:flex;align-items:center;justify-content:space-between;font-weight:600;margin-bottom:8px}
.upload-tray .tray-actions{display:flex;gap:6px}
.upload-item{padding:8px;border-bottom:1px solid #242a33}
.upload-item:last-child{border-bottom:none}
.upload-name{color:#e6e8eb;margin-bottom:6px}
.upload-status{color:#9aa0a6;font-size:12px;margin-top:4px}
.upload-item .progress{height:6px;background:#0d1117;border-radius:999px;overflow:hidden}
.upload-item .progress .bar{height:100%;background:#2b59ff;width:0%}
.context-menu .item{padding:10px 12px;color:#cdd1d6;cursor:pointer}
.context-menu .item:hover{background:#1a1f27}
.dropzone{border:2px dashed #2c3440;border-radius:12px;padding:24px;text-align:center;color:#cdd1d6;background:#0d1117}
.dropzone .dz-box{border:2px dashed #3b4452;border-radius:12px;padding:18px;min-width:280px;min-height:160px;max-width:420px;margin:12px auto;display:flex;align-items:center;justify-content:center;flex-direction:column}
.dropzone i{font-size:26px;color:#9aa0a6;margin-bottom:10px}
.dropzone .dz-title{font-weight:600;color:#e6e8eb;margin-bottom:6px}
.dropzone .dz-sub{font-size:12px;color:#9aa0a6}
.dropzone.dragover{border-color:#2b59ff;background:#12161c}
.dropzone.dragover .dz-box{border-color:#2b59ff;background:rgba(43,89,255,.06)}
.breadcrumb{display:flex;align-items:center;gap:8px;margin-top:16px;margin-bottom:12px}
.breadcrumb a{color:#cdd1d6;text-decoration:none}
.breadcrumb .sep{color:#9aa0a6}
.breadcrumb .title{font-weight:600;color:#e6e8eb}
.back-btn{margin-right:8px}
.storage-card{margin-top:auto}
.storage-title{font-weight:700;color:#e6e8eb;display:flex;align-items:center;gap:8px}
.storage-title i{color:#2b59ff}
.storage-plan{color:#9aa0a6;margin-top:4px}
/* Pricing modal */
.modal.pricing{max-width:900px;width:92vw}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pricing-card{background:#0d1117;border:1px solid #2c3440;border-radius:12px;padding:14px}
.pricing-head{display:flex;align-items:center;justify-content:space-between;color:#e6e8eb;font-weight:700;margin-bottom:8px}
.pricing-price{font-size:18px}
.pricing-features{color:#cdd1d6;font-size:14px;margin:8px 0}
.pricing-features .item{display:flex;align-items:center;gap:8px;margin:6px 0}
.pricing-badge{background:#2b59ff;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px}
.pricing-cta{display:flex;justify-content:flex-end;margin-top:10px}
@media (max-width: 820px){
  .pricing-grid{grid-template-columns:1fr}
}
.udrive-footer{margin-top:0;padding:16px;text-align:center;color:#9aa0a6;border-top:1px solid #242a33;background:#151920}
/* Upload overlay for progress */
.upload-overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.65);display:none;align-items:center;justify-content:center;z-index:1002}
.upload-box{background:#151920;border:1px solid #2c3440;border-radius:12px;padding:16px;width:min(420px,90vw);color:#e6e8eb;box-shadow:0 14px 32px rgba(0,0,0,.35)}
.upload-box .title{font-weight:600;margin-bottom:10px}
.progress{height:10px;background:#2c3440;border-radius:999px;overflow:hidden}
.progress .bar{height:100%;width:0;background:#2b59ff;transition:width .2s ease}
.progress .bar.warning{background:#fbbf24}
.progress .bar.danger{background:#ef4444}
/* Upload tray */
.upload-tray{position:fixed;right:16px;bottom:16px;z-index:1003;display:none;width:320px;max-height:50vh}
.upload-tray .tray-title{background:#151920;border:1px solid #2c3440;border-bottom:none;border-radius:12px 12px 0 0;padding:10px;color:#e6e8eb;font-weight:600}
.upload-tray .tray-list{background:#151920;border:1px solid #2c3440;border-top:none;border-radius:0 0 12px 12px;overflow:auto;max-height:42vh}
.upload-item{padding:10px;border-top:1px solid #2c3440}
.upload-item:first-child{border-top:none}
.upload-name{font-size:12px;color:#cdd1d6;margin-bottom:6px}
.upload-status{font-size:11px;color:#9aa0a6;margin-top:6px}
.file-printed{display:inline-block;margin-top:4px;background:#22c55e;color:#0b0e13;font-weight:700;font-size:11px;border-radius:999px;padding:2px 8px}
body.light .file-printed{background:#16a34a;color:#ffffff}
.drag-ghost{position:fixed;pointer-events:none;z-index:1004;background:#151920;border:1px solid #2c3440;border-radius:10px;padding:8px;display:flex;align-items:center;gap:8px;box-shadow:0 10px 24px rgba(0,0,0,.35)}
.drag-ghost .dg-grid{display:flex;gap:4px}
.drag-ghost .dg-item{width:32px;height:32px;border-radius:6px;overflow:hidden;background:#0d1117;border:1px solid #2c3440;display:flex;align-items:center;justify-content:center}
.drag-ghost .dg-item img{width:100%;height:100%;object-fit:cover}
.drag-ghost .dg-count{color:#e6e8eb;font-size:12px}
/* Trash drop */
.trash-drop{position:fixed;right:16px;bottom:16px;z-index:1003;background:#151920;border:1px solid #2c3440;border-radius:12px;padding:12px;color:#e6e8eb;display:none;align-items:center;gap:8px}
.trash-drop i{color:#d13c3c}
body.light{background:#f6f7f9;color:#1a1d21}
body.light .udrive-header{background:#ffffff;border-bottom:1px solid #e5e7eb}
body.light .udrive-header .nav a{color:#111827}
body.light .sidebar{background:#fafafa;border-right:1px solid #e5e7eb}
body.light .card{background:#ffffff;border-color:#e5e7eb}
body.light .content{color:#111827}
body.light .btn{background:#ffffff;color:#111827;border-color:#d1d5db}
body.light .btn.primary{background:#2563eb;border-color:#2563eb;color:#ffffff}
body.light .input{background:#ffffff;color:#111827;border-color:#d1d5db}
body.light .thumb{background:#f3f4f6;border-color:#e5e7eb}
body.light .folders a{color:#111827}
body.light .folders a.active{background:#e5e7eb}
body.light .tree-toggle{color:#111827}
body.light .tree-item>a{color:#111827}
body.light .tree-item>a.active{background:#e5e7eb}
body.light .sidebar .tree-root a,
body.light .sidebar .tree-root a:visited{color:#111827}
body.light .sidebar .tree-root a:hover{color:#000000}
body.light .context-menu{background:#ffffff;border-color:#e5e7eb}
body.light .modal{background:#ffffff;border-color:#e5e7eb;box-shadow:0 20px 40px rgba(0,0,0,.08)}
body.light .lightbox-content{background:#ffffff;border-color:#e5e7eb}
body.light .breadcrumb a{color:#111827}
body.light .breadcrumb .sep{color:#6b7280}
.udrive-footer{background:#151920}
body.light .udrive-footer{background:#ffffff;border-top:1px solid #e5e7eb;color:#6b7280}
.udrive-footer a{color:inherit;text-decoration:none}
body.light .udrive-footer a{color:inherit;text-decoration:none}
body.light .upload-box{background:#ffffff;border-color:#e5e7eb;color:#111827}
body.light .progress{background:#d1d5db}
body.light .progress .bar{background:#2563eb}
body.light .progress .bar.warning{background:#f59e0b}
body.light .progress .bar.danger{background:#dc2626}
body.light .upload-tray .tray-title{background:#ffffff;border-color:#e5e7eb;color:#111827}
body.light .upload-tray .tray-list{background:#ffffff;border-color:#e5e7eb}
body.light .upload-item{border-top:1px solid #e5e7eb}
body.light .trash-drop{background:#ffffff;border-color:#e5e7eb;color:#111827}
body.light .dropzone{background:#ffffff;border-color:#d1d5db;color:#111827}
body.light .dropzone .dz-box{border-color:#d1d5db}
body.light .dropzone .dz-title{color:#111827}
body.light .dropzone .dz-sub{color:#6b7280}
body.light .dropzone.dragover{border-color:#2563eb;background:#f3f4f6}
body.light .dropzone.dragover .dz-box{border-color:#2563eb;background:rgba(37,99,235,.06)}
/* Light mode: make folder names darker like file names */
body.light .folder-name{color:#111827}
.content.share .thumb{width:140px;height:140px;aspect-ratio:1/1;margin:0 auto}
.content.share{margin-top:64px}
.folder-tile.selected,.folder-tile.selected:focus{outline:2px solid #2b59ff;outline-offset:2px}
/* (Listado eliminado) */
/* Nuevo menu en navbar */
.new-menu{position:relative;display:inline-block}
.new-menu .dropdown{position:absolute;top:100%;right:0;background:#0d1117;border:1px solid #2c3440;border-radius:10px;box-shadow:0 12px 24px rgba(0,0,0,.35);min-width:220px;padding:6px;display:none;z-index:2000}
.new-menu.open .dropdown{display:block}
.new-menu .dropdown .item{display:block;width:100%;text-align:left;background:transparent;border:none;color:#e6e8eb;padding:10px 12px;border-radius:8px;cursor:pointer}
.new-menu .dropdown .item:hover{background:#151b26}
@media (max-width: 768px){
  .udrive-header{flex-direction:column;gap:10px;height:auto;padding:10px 12px}
  .udrive-header .nav{width:100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .udrive-header .nav form{flex:1;display:flex;gap:8px}
  .udrive-header .nav .btn{padding:10px 12px}
  .layout{grid-template-columns:1fr;height:auto}
  .sidebar{display:none}
  .content{padding:12px;margin-top:0;height:auto}
  .grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
  .thumb{height:140px;border-radius:12px}
  .card{border-radius:14px}
  .context-menu{min-width:82vw}
}
/* (Listado modo claro eliminado) */
@media (max-width: 768px){
  .context-menu .item{padding:14px 16px;font-size:15px}
  .modal{width:96vw;max-width:96vw;padding:16px;border-radius:16px}
  .audio-player{right:0;left:0;width:100vw;border-radius:0}
  .upload-overlay{align-items:flex-end}
  .upload-box{width:100vw;border-radius:16px 16px 0 0}
  .trash-drop{right:12px;bottom:12px}
  .btn{padding:10px 12px}
  .input{padding:10px}
  .toolbar{display:flex;align-items:center;gap:8px;margin:8px 0 12px}
}
/* Share view mobile refinements */
@media (max-width: 768px){
  .content.share .grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
  .content.share .folder-tile.card{padding:10px}
  .content.share .folder-icon{width:72px;height:72px}
  .content.share .folder-name{font-size:12px}
  .content.share .file-card{gap:6px;padding:8px}
  .content.share .thumb{height:120px;border-radius:10px}
  .content.share .file-card>div:last-child{font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .content.share .thumb img.icon{max-width:64px;max-height:64px;padding:8px}
  .content.share .breadcrumb{gap:6px;margin-top:10px;margin-bottom:8px}
  .content.share .breadcrumb .title{font-size:13px}
  .content.share .breadcrumb .sep{font-size:12px}
  .udrive-header .brand img{height:32px}
  .udrive-header{padding:8px 10px}
  .udrive-header .nav .btn{padding:8px 10px;font-size:13px}
}
@media (max-width: 420px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .thumb{height:120px}
  .content.share .grid{grid-template-columns:repeat(2,1fr)}
  .content.share .thumb{height:100px}
  .content.share .folder-icon{width:64px;height:64px}
  .udrive-header .nav .btn{font-size:12px;padding:8px 10px}
  .content.share .thumb img.icon{max-width:56px;max-height:56px;padding:6px}
  .content.share .back-btn{padding:6px 10px;font-size:12px}
  .content.share .breadcrumb{gap:4px;margin-top:8px;margin-bottom:6px;flex-wrap:wrap}
  .content.share .breadcrumb a{font-size:12px}
  .content.share .breadcrumb .title{font-size:12px}
  .content.share .breadcrumb .sep{font-size:11px}
}
