/* Fuentes incluidas en el proyecto (licencia SIL OFL 1.1, ver app/assets/fonts/OFL-*.txt).
   Son fuentes variables: un archivo cubre todos los grosores. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/dm-sans-latin-e31bd5eddc2415193e7398e18446249be75ca368076a053402583b62ea1c7717.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/manrope-latin-249690f5f36fb8410a1bc2c810325aaf87190b01a7505b123c6d2743519f4f66.woff2) format("woff2");
}
.stlfm{--bg:#f5f6f8;--surface:#fff;--ink:#202632;--muted:#6f7785;--line:#e6e8ec;--sidebar:#172129;--accent:#e77f46;--accent-dark:#c8612d;--soft:#fff1e7;--radius:13px;--shadow:0 2px 6px #1f293708}
.stlfm,.stlfm *{box-sizing:border-box}.stlfm{margin:0;min-height:100%;font-family:'DM Sans',system-ui,-apple-system,sans-serif;font-size:15px;color:var(--ink);background:var(--bg)}.stlfm button,.stlfm input,.stlfm select{font:inherit}.stlfm button{cursor:pointer}.stlfm button:focus-visible,.stlfm a:focus-visible,.stlfm input:focus-visible,.stlfm select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.stlfm button{color:inherit}.stlfm svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.7;vertical-align:middle;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.stlfm a{color:inherit;text-decoration:none}
.stlfm .shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.stlfm .sidebar{background:var(--sidebar);color:#c2c9ce;display:flex;flex-direction:column;padding:26px 16px 16px;position:sticky;top:0;height:100vh;overflow:auto;z-index:30}.stlfm .brand{display:flex;align-items:center;gap:11px;padding:0 9px 31px;color:white}.stlfm .brand-mark{width:40px;height:40px;display:grid;place-items:center;background:#e68148;border-radius:11px;color:#172129}.stlfm .brand-mark svg{height:26px;width:26px;stroke-width:1.8}.stlfm .brand-title{font-size:19px;font-weight:800;letter-spacing:-.8px;line-height:1.12;font-family:Manrope,system-ui}.stlfm .brand-title span{color:#f18e56}.stlfm .brand-sub{color:#8c9aa5;font-size:11px;letter-spacing:1.1px;margin-top:4px;font-weight:600;text-transform:uppercase}
.stlfm .side-label{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:#82929e;font-weight:700;padding:15px 12px 9px;display:flex;align-items:center;justify-content:space-between}.stlfm .side-label button{border:none;background:transparent;color:#98a7b1;padding:0;line-height:1}.stlfm .side-label button:hover{color:white}.stlfm .nav-item{width:100%;border:0;display:flex;align-items:center;gap:11px;text-align:left;padding:11px 12px;color:#c0cbd3;background:transparent;border-radius:8px;margin:2px 0;font-weight:500;font-size:14px;white-space:nowrap}.stlfm .nav-item svg{width:19px;height:19px}.stlfm .nav-item.active{background:#304047;color:#ffab76;font-weight:700}.stlfm .nav-item:hover:not(.active){background:#25353e;color:white}.stlfm .nav-item .nav-count{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums;color:#82929e}.stlfm .nav-item.active .nav-count{color:#f5a477}.stlfm .folder-dot{width:9px;height:9px;border-radius:3px;display:inline-block;margin-left:5px;margin-right:5px;flex-shrink:0}.stlfm .side-bottom{margin-top:auto;padding-top:23px}.stlfm .workspace-meta{border:1px solid #34434e;background:#222e37;border-radius:11px;padding:14px 13px;margin:10px 3px 0;font-size:12px;color:#a3afb9}.stlfm .workspace-meta strong{display:block;color:white;font-size:13px;margin:0 0 4px}.stlfm .workspace-meta svg{width:15px;height:15px;color:#f4a271;margin-right:5px}.stlfm .workspace-meta .line{display:flex;align-items:center;justify-content:space-between}
.stlfm .main{min-width:0}.stlfm .header{height:73px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 33px;position:sticky;top:0;z-index:20}.stlfm .breadcrumbs{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--muted);font-size:13px;font-weight:600}.stlfm .breadcrumbs svg{width:15px;height:15px;color:#a1a9b5}.stlfm .breadcrumbs strong{font-weight:700;color:var(--ink)}.stlfm .header-right{margin-left:auto;display:flex;align-items:center;gap:20px}.stlfm .search{border:1px solid var(--line);background:#f7f8fa;border-radius:8px;height:39px;width:275px;padding:0 11px;display:flex;align-items:center;gap:9px;min-width:0}.stlfm .search svg{width:17px;height:17px;color:#7c8794}.stlfm .search input{border:0;outline:none;background:transparent;min-width:0;width:100%;font-size:13px;color:var(--ink)}.stlfm .search kbd{border:1px solid #dde1e6;background:white;border-radius:4px;color:#9098a3;font-family:inherit;font-size:10px;padding:2px 4px;white-space:nowrap}.stlfm .profile{display:flex;align-items:center;gap:10px;background:transparent;border:0;text-align:left;padding:0}.stlfm .avatar{height:36px;width:36px;border-radius:50%;background:#f3dfcf;color:#a64b28;font-weight:800;display:grid;place-items:center;font-size:13px;flex-shrink:0}.stlfm .profile-text{line-height:1.25;white-space:nowrap}.stlfm .profile-text strong{display:block;font-size:13px}.stlfm .profile-text span{font-size:11px;color:var(--muted)}.stlfm .profile>svg{width:15px;height:15px;color:var(--muted)}.stlfm .profile-wrap{position:relative}.stlfm .profile-menu{position:absolute;right:0;top:48px;width:250px;box-shadow:0 8px 35px #20263220;z-index:40;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px}.stlfm .profile-menu p{padding:5px 9px;margin:0;font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.5px;text-transform:uppercase}.stlfm .profile-menu button{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:10px;padding:10px;border-radius:6px}.stlfm .profile-menu button:hover{background:#f5f6f8}.stlfm .profile-menu .avatar{width:28px;height:28px;font-size:11px}.stlfm .profile-menu button span{flex:1;font-size:13px}.stlfm .menu-toggle{display:none;border:0;background:transparent;padding:6px}
.stlfm .content{max-width:1580px;margin:0 auto;padding:32px 34px 55px}.stlfm .intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:30px}.stlfm .eyebrow{display:flex;align-items:center;gap:6px;color:#7b8490;font-size:12px;font-weight:600;margin-bottom:8px}.stlfm .eyebrow svg{width:15px;height:15px;color:var(--accent-dark)}.stlfm h1,.stlfm h2,.stlfm h3,.stlfm p{margin:0}.stlfm h1{font-family:Manrope,system-ui;font-size:34px;line-height:1.13;font-weight:800;letter-spacing:-1.4px}.stlfm .intro p{color:var(--muted);font-size:15px;margin-top:9px;line-height:1.5}.stlfm .btn{border:1px solid var(--line);background:#fff;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:700;min-height:41px;padding:10px 15px;white-space:nowrap;box-shadow:var(--shadow)}.stlfm .btn svg{width:17px;height:17px}.stlfm .btn.primary{background:var(--accent);color:#1e2024;border-color:var(--accent);box-shadow:none}.stlfm .btn.primary:hover{background:#f0935d}.stlfm .btn.secondary:hover{background:#f2f4f6}.stlfm .btn.destructive{color:#ad2c27;border-color:#f0c4c0}.stlfm .intro .btn{margin-top:12px}
.stlfm .section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 15px}.stlfm .section-head h2{font-family:Manrope,system-ui;font-weight:800;font-size:18px;letter-spacing:-.4px}.stlfm .section-head .plain-link{border:0;background:transparent;color:var(--accent-dark);font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px}.stlfm .plain-link:hover{text-decoration:underline}.stlfm .folders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:34px}.stlfm .folder-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:11px;display:flex;align-items:center;gap:12px;padding:15px 13px;min-width:0;text-align:left;transition:transform .15s,border-color .15s}.stlfm .folder-card:hover{transform:translateY(-2px);border-color:#e4aa87}.stlfm .folder-icon{height:44px;width:46px;display:grid;place-items:center;border-radius:10px;flex-shrink:0;background:var(--folderbg);color:var(--foldercolor)}.stlfm .folder-icon svg{width:25px;height:25px;stroke-width:1.6;fill:currentColor;fill-opacity:.12}.stlfm .folder-card strong{display:block;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stlfm .folder-card span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.stlfm .folder-card .folder-text{min-width:0;flex:1}.stlfm .folder-card>svg{height:14px;width:14px;color:#a2aab3}.stlfm .catalog-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:16px}.stlfm .catalog-heading h2{font-size:21px;font-family:Manrope,system-ui;letter-spacing:-.5px;font-weight:800;display:flex;align-items:center;gap:10px}.stlfm .count-badge{background:#e9edf0;border-radius:6px;padding:3px 7px;color:#606b79;font:600 12px 'DM Sans',sans-serif}.stlfm .catalog-heading p{font-size:13px;color:var(--muted);margin-top:5px}.stlfm .tools{display:flex;align-items:center;gap:9px}.stlfm .sort-select{appearance:none;border:1px solid var(--line);border-radius:8px;padding:10px 34px 10px 12px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23707885' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;font-size:13px;color:#46505c;max-width:160px}.stlfm .segmented{display:flex;background:white;border:1px solid var(--line);border-radius:8px;padding:3px;gap:3px}.stlfm .segmented button{width:33px;height:32px;border:0;background:transparent;color:#8a94a1;border-radius:5px;display:grid;place-items:center}.stlfm .segmented svg{width:17px;height:17px}.stlfm .segmented .active{background:#f9ece2;color:#b85b2b}.stlfm .models{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.stlfm .model-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .18s,transform .18s;min-width:0}.stlfm .model-card:hover{box-shadow:0 7px 20px #20263212;transform:translateY(-2px)}.stlfm .thumb{position:relative;aspect-ratio:1.52;background:#e9ecef;overflow:hidden;cursor:pointer}.stlfm .thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s}.stlfm .model-card:hover .thumb img{transform:scale(1.025)}.stlfm .thumb .file-badge{position:absolute;top:11px;left:11px;background:#ffffffdf;border:1px solid #ffffff8a;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:800;letter-spacing:.6px;color:#4e5863}.stlfm .favorite{border:1px solid #fff9;position:absolute;top:10px;right:10px;background:#fffffff0;border-radius:7px;width:34px;height:34px;display:grid;place-items:center;color:#596271}.stlfm .favorite svg{width:18px;height:18px}.stlfm .favorite:hover,.stlfm .favorite.on{color:#d6753a}.stlfm .favorite.on svg{fill:#e77f46;stroke:#e77f46}.stlfm .placeholder-thumb{height:100%;display:grid;place-items:center;color:#9aa4b2}.stlfm .placeholder-thumb svg{width:70px;height:70px;stroke-width:.75}.stlfm .model-body{padding:15px 15px 14px}.stlfm .model-name{font-size:16px;font-weight:800;letter-spacing:-.18px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stlfm .model-name:hover{color:var(--accent-dark)}.stlfm .model-meta{color:var(--muted);font-size:12px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.stlfm .model-meta svg{width:14px;height:14px}.stlfm .model-footer{border-top:1px solid #edf0f2;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;padding-top:11px}.stlfm .model-size{display:flex;align-items:center;gap:6px;color:#72808d;font-size:12px}.stlfm .model-size svg{width:14px;height:14px}.stlfm .download-btn{border:1px solid #e4e7eb;background:white;color:#3b454f;min-height:33px;padding:7px 10px;border-radius:7px;display:flex;gap:6px;align-items:center;font-size:12px;font-weight:700}.stlfm .download-btn svg{width:15px;height:15px}.stlfm .download-btn:hover{background:#fff2e9;color:#b95f2f;border-color:#f5c8ad}.stlfm .models.list{display:flex;flex-direction:column;gap:10px}.stlfm .models.list .model-card{display:flex;align-items:stretch;height:110px}.stlfm .models.list .thumb{width:150px;flex-shrink:0;aspect-ratio:auto}.stlfm .models.list .model-body{display:flex;align-items:center;gap:20px;flex:1;min-width:0}.stlfm .models.list .model-footer{border:0;margin:0 0 0 auto;gap:18px;padding:0}.stlfm .models.list .model-meta{margin:5px 0 0}.stlfm .empty{border:1px dashed #cdd3db;background:#fff;border-radius:12px;text-align:center;padding:60px 20px;color:var(--muted)}.stlfm .empty svg{width:40px;height:40px;color:#aeb8c0;margin-bottom:15px}.stlfm .empty h3{color:var(--ink);margin-bottom:8px}
.stlfm .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:27px}.stlfm .stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;align-items:center;gap:15px}.stlfm .stat-icon{width:48px;height:48px;background:#fff1e6;color:var(--accent-dark);border-radius:11px;display:grid;place-items:center}.stlfm .stat-icon svg{width:23px;height:23px}.stlfm .stat span{color:var(--muted);font-size:13px}.stlfm .stat strong{display:block;font-size:28px;line-height:1.3;font-family:Manrope,system-ui;font-weight:800}.stlfm .panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.stlfm .tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 20px}.stlfm .tab{border:0;background:transparent;color:var(--muted);font-weight:700;padding:17px 2px;border-bottom:2px solid transparent;display:flex;align-items:center;gap:8px;font-size:14px}.stlfm .tab.active{color:var(--accent-dark);border-color:var(--accent)}.stlfm .tab svg{width:18px;height:18px}.stlfm .panel-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px}.stlfm .panel-toolbar h2{font-size:17px}.stlfm .panel-toolbar p{color:var(--muted);font-size:13px;margin-top:5px}.stlfm .table-wrap{overflow-x:auto}.stlfm table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}.stlfm thead{background:#f7f8f9;color:#64707e;font-size:12px}.stlfm td,.stlfm th{padding:15px 20px;border-top:1px solid var(--line);white-space:nowrap}.stlfm td .avatar{display:inline-grid;vertical-align:middle;margin-right:10px}.stlfm .role{padding:4px 8px;font-size:12px;background:#f0f1f4;border-radius:5px;font-weight:700}.stlfm .role.admin{background:#fff0e5;color:#b56030}.stlfm .tag{font-size:12px;background:#f0f3f5;padding:4px 7px;border-radius:5px;display:inline-block;margin:2px 3px 2px 0}.stlfm .action{border:0;background:transparent;font-size:13px;color:var(--accent-dark);font-weight:700;padding:6px}.stlfm .action:hover{text-decoration:underline}.stlfm .table-model{width:54px;height:40px;object-fit:cover;border-radius:6px;vertical-align:middle;margin-right:10px}.stlfm .muted{color:var(--muted)}
.stlfm .modal-overlay{position:fixed;inset:0;background:#16212ccc;display:grid;place-items:center;z-index:100;padding:20px;backdrop-filter:blur(3px)}.stlfm .dialog{max-width:min(100%,520px);width:100%;max-height:90vh;overflow:auto;background:white;border-radius:15px;box-shadow:0 20px 80px #0004}.stlfm .dialog.wide{max-width:850px}.stlfm .dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:22px 24px 16px}.stlfm .dialog-head h2{font-size:21px;letter-spacing:-.5px;font-weight:800;font-family:Manrope,system-ui}.stlfm .dialog-head p{font-size:13px;color:var(--muted);margin-top:5px}.stlfm .icon-btn{border:0;background:#f3f4f6;border-radius:7px;height:33px;width:33px;display:grid;place-items:center;flex-shrink:0;color:#6a7480}.stlfm .icon-btn:hover{background:#e6e9ec}.stlfm .dialog form,.stlfm .dialog .modal-content{padding:0 24px 24px}.stlfm .dialog label{display:block;font-size:13px;font-weight:700;margin:14px 0 6px}.stlfm .dialog input:not([type=checkbox]),.stlfm .dialog select,.stlfm .dialog textarea{width:100%;border:1px solid #dce0e5;border-radius:7px;padding:11px 12px;background:white;outline:none;font:inherit;color:var(--ink)}.stlfm .dialog input:focus,.stlfm .dialog select:focus{border-color:var(--accent)}.stlfm .dialog .checkboxes{border:1px solid var(--line);border-radius:8px;padding:0 12px}.stlfm .dialog .check-row{display:flex;align-items:center;gap:9px;margin:0;padding:12px 0;border-bottom:1px solid var(--line)}.stlfm .dialog .check-row:last-child{border:0}.stlfm .dialog input[type=checkbox]{accent-color:#d77b44;width:17px;height:17px}.stlfm .dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px;flex-wrap:wrap}.stlfm .detail{display:grid;grid-template-columns:1.15fr .85fr;gap:25px}.stlfm .detail-image{aspect-ratio:1.16;background:#e9ecef;border-radius:10px;overflow:hidden}.stlfm .detail-image img{height:100%;width:100%;object-fit:cover}.stlfm .detail-info{display:flex;flex-direction:column;gap:14px}.stlfm .detail-info h3{font-size:24px}.stlfm .detail-info p{font-size:14px;line-height:1.6;color:var(--muted)}.stlfm .detail-facts{padding-top:6px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px}.stlfm .detail-facts div{display:flex;justify-content:space-between;font-size:13px;gap:10px}.stlfm .detail-facts span{color:var(--muted)}.stlfm .detail-info .btn.primary{margin-top:auto}.stlfm .notice{display:flex;gap:10px;align-items:start;background:#fff5ed;border:1px solid #f6ddcb;border-radius:8px;color:#9a542a;font-size:13px;padding:12px 14px;line-height:1.45;margin-bottom:18px}.stlfm .notice svg{height:17px;width:17px;margin-top:1px}.stlfm .toast{position:fixed;z-index:110;bottom:24px;right:25px;background:#26353c;color:white;border-radius:10px;padding:14px 18px;box-shadow:0 6px 30px #0003;display:flex;align-items:center;gap:9px;animation:stlfm-enter .2s ease}.stlfm .toast svg{color:#9cddb6}@keyframes stlfm-enter{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.stlfm .overlay{display:none}.stlfm .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1450px){.stlfm .models{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1130px){.stlfm .shell{grid-template-columns:218px minmax(0,1fr)}.stlfm .content{padding:28px 24px}.stlfm .header{padding:0 24px}.stlfm .folders{grid-template-columns:repeat(2,minmax(0,1fr))}.stlfm .folder-card{padding:13px}.stlfm .models{gap:14px}.stlfm .search{width:230px}.stlfm .profile-text{display:none}.stlfm .header-right{gap:14px}}@media(max-width:850px){.stlfm .shell{grid-template-columns:1fr}.stlfm .sidebar{position:fixed;left:0;top:0;width:244px;transform:translateX(-100%);transition:transform .2s}.stlfm .sidebar.open{transform:translateX(0)}.stlfm .overlay.open{display:block;position:fixed;inset:0;background:#19232c77;z-index:29}.stlfm .menu-toggle{display:block}.stlfm .header{padding:0 19px;height:64px;gap:12px}.stlfm .header-right{gap:12px}.stlfm .content{padding:25px 20px}.stlfm .models{grid-template-columns:repeat(2,minmax(0,1fr))}.stlfm .brand{padding-bottom:24px}.stlfm .search{width:min(34vw,235px)}.stlfm .breadcrumbs>span:first-child,.stlfm .breadcrumbs>svg{display:none}.stlfm .stats{grid-template-columns:repeat(3,1fr)}.stlfm .stat{padding:12px;gap:8px}.stlfm .stat-icon{width:40px;height:40px}}@media(max-width:520px){.stlfm .header .breadcrumbs{display:none}.stlfm .header-right{width:100%}.stlfm .search{flex:1;width:auto}.stlfm .search kbd{display:none}.stlfm .header{gap:7px;padding:0 13px}.stlfm .content{padding:23px 15px}.stlfm .intro{flex-wrap:wrap;gap:8px;margin-bottom:24px}.stlfm .intro .btn{margin-top:6px}.stlfm .intro h1{font-size:30px}.stlfm .folders{gap:8px;margin-bottom:26px}.stlfm .folder-icon{width:36px;height:36px}.stlfm .folder-card{gap:8px;padding:10px 8px}.stlfm .folder-card>svg{display:none}.stlfm .folder-card strong{font-size:12px}.stlfm .folder-card span{font-size:11px}.stlfm .catalog-heading{align-items:start;flex-wrap:wrap}.stlfm .tools{width:100%;justify-content:space-between}.stlfm .models{gap:10px}.stlfm .thumb{aspect-ratio:1.2}.stlfm .model-body{padding:10px}.stlfm .model-name{font-size:13px}.stlfm .model-meta,.stlfm .model-size{font-size:11px}.stlfm .download-btn{padding:6px;font-size:0;gap:0;width:30px;justify-content:center}.stlfm .model-footer{margin-top:9px;padding-top:9px}.stlfm .models.list .thumb{width:95px}.stlfm .models.list .model-card{height:97px}.stlfm .models.list .model-body{gap:7px}.stlfm .models.list .model-footer{gap:5px}.stlfm .stats{grid-template-columns:1fr;gap:8px}.stlfm .stat strong{font-size:22px}.stlfm .tabs{gap:15px;padding:0 14px}.stlfm .tab{font-size:12px}.stlfm .panel-toolbar{padding:15px;align-items:flex-start;flex-wrap:wrap}.stlfm .detail{grid-template-columns:1fr}.stlfm .dialog-head{padding:18px}.stlfm .dialog form,.stlfm .dialog .modal-content{padding:0 18px 18px}.stlfm .dialog-head h2{font-size:19px}}
.stlfm .brand-sub{font-size:10px;letter-spacing:.7px;white-space:nowrap}.stlfm .nav-item span:not(.folder-dot):not(.nav-count){overflow:hidden;text-overflow:ellipsis}.stlfm .panel .table-wrap td:nth-child(4){white-space:normal;max-width:320px}

/* Dark theme — shared across the library, membership and admin screens. */
.stlfm{
  color-scheme: dark;
  --bg:#161a20;
  --surface:#222831;
  --ink:#e9edf2;
  --muted:#a2adbb;
  --line:#343c47;
  --sidebar:#11171d;
  --accent:#ee8951;
  --accent-dark:#f49a65;
  --soft:#382b26;
  --shadow:0 2px 7px #0002;
}
.stlfm .sidebar{border-right:1px solid #2a333e}
.stlfm .brand-mark{background:var(--accent);color:#151a20}
.stlfm .brand-sub{color:#98a5b2}
.stlfm .side-label{color:#8795a2}
.stlfm .nav-item{color:#b8c2ce}
.stlfm .nav-item.active{background:#302a28;color:#ffae7c}
.stlfm .nav-item:hover:not(.active){background:#222b34}
.stlfm .nav-item.active .nav-count{color:#f0a175}
.stlfm .workspace-meta{border-color:#303a45;background:#1c242d;color:#a6b1bb}
.stlfm .header{background:#1d232b;border-color:#303843}
.stlfm .breadcrumbs svg{color:#73808e}
.stlfm .search{background:#151b22;border-color:#333d49}
.stlfm .search svg{color:#a0adbb}
.stlfm .search input::placeholder{color:#929eab}
.stlfm .search kbd{background:#222a34;border-color:#384451;color:#a5b0bc}
.stlfm .avatar{background:#483226;color:#ffb583}
.stlfm .profile-menu{background:#232b35;box-shadow:0 10px 36px #0006}
.stlfm .profile-menu button:hover{background:#303944}
.stlfm .eyebrow{color:#a6b0bc}
.stlfm .eyebrow svg{color:var(--accent)}
.stlfm .btn{background:#252d36;border-color:#3b4652;box-shadow:none}
.stlfm .btn.primary{background:var(--accent);border-color:var(--accent);color:#191b1f}
.stlfm .btn.primary:hover{background:#ffa674;border-color:#ffa674}
.stlfm .btn.secondary:hover{background:#303a45;border-color:#54606d}
.stlfm .btn.destructive{color:#ff9b94;border-color:#75403d}
.stlfm .folder-card{background:var(--surface);border-color:var(--line)}
.stlfm .folder-card:hover{border-color:#bc7955;box-shadow:0 5px 22px #0003}
.stlfm .folder-icon{background:color-mix(in srgb,var(--foldercolor) 20%,#202831);color:color-mix(in srgb,var(--foldercolor) 80%,#fff)}
.stlfm .folder-card>svg{color:#8d98a5}
.stlfm .count-badge{background:#2e3741;color:#b2beca}
.stlfm .sort-select{color:#bbc5d0;border-color:var(--line);background-color:#222831}
.stlfm .segmented{background:#222831;border-color:var(--line)}
.stlfm .segmented button{color:#929eac}
.stlfm .segmented .active{background:#503528;color:#ffab79}
.stlfm .model-card{background:var(--surface);border-color:var(--line);box-shadow:0 3px 10px #0002}
.stlfm .model-card:hover{border-color:#56616f;box-shadow:0 9px 24px #0005}
.stlfm .thumb,.stlfm .detail-image{background:#30353d}
.stlfm .thumb .file-badge{background:#1e242ce8;border-color:#68717a80;color:#e2e7ed}
.stlfm .favorite{background:#242b34e8;border-color:#717b8680;color:#d2dbe4}
.stlfm .favorite:hover,.stlfm .favorite.on{color:#ffab79;border-color:#c88961}
.stlfm .favorite.on svg{fill:var(--accent);stroke:var(--accent)}
.stlfm .placeholder-thumb{color:#8290a0}
.stlfm .model-footer{border-color:#353e49}
.stlfm .model-size{color:#a2aebb}
.stlfm .download-btn{background:#2a333d;border-color:#414d5a;color:#e1e7ee}
.stlfm .download-btn:hover{background:#4a3429;border-color:#966044;color:#ffb889}
.stlfm .empty{background:#222831;border-color:#47515f}
.stlfm .empty svg{color:#8998a9}
.stlfm .stat,.stlfm .panel{background:var(--surface);border-color:var(--line)}
.stlfm .stat-icon{background:#443229;color:#ffa26e}
.stlfm .tab.active{color:#ffa673}
.stlfm thead{background:#1c232b;color:#acb8c5}
.stlfm .role{background:#333e49;color:#d0d9e2}
.stlfm .role.admin{background:#4b3328;color:#ffb382}
.stlfm .tag{background:#303a46;color:#c5cfd9}
.stlfm .action{color:var(--accent-dark)}
.stlfm .modal-overlay{background:#070b10b5}
.stlfm .dialog{background:#222a33;border:1px solid #3b4552;box-shadow:0 20px 80px #0008}
.stlfm .icon-btn{background:#343d49;color:#b9c4d1}
.stlfm .icon-btn:hover{background:#414d5a}
.stlfm .dialog input:not([type=checkbox]),.stlfm .dialog select,.stlfm .dialog textarea{background:#171e26;border-color:#424e5c;color:var(--ink)}
.stlfm .dialog input::placeholder,.stlfm .dialog textarea::placeholder{color:#8190a0}
.stlfm .dialog input:focus,.stlfm .dialog select:focus,.stlfm .dialog textarea:focus{border-color:var(--accent)}
.stlfm .dialog input[type=checkbox]{accent-color:var(--accent)}
.stlfm .notice{background:#352923;color:#f0b48d;border-color:#6b4734}
.stlfm .toast{background:#303c45;color:#f1f5f9;border:1px solid #51606e}
.stlfm .nav-item{gap:9px;padding-left:10px;padding-right:9px}
.stlfm .nav-item span:not(.folder-dot):not(.nav-count){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}

/* ERB components */
.stlfm{min-height:100vh;display:block;isolation:isolate}
.stlfm .brand-title,.stlfm .brand-sub{display:block}
.stlfm .nav-item{gap:9px;padding-left:10px;padding-right:9px}
.stlfm .nav-item span:not(.folder-dot):not(.nav-count){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
.stlfm .side-add{color:#98a7b1;display:flex;padding:0}
.stlfm .side-add:hover{color:white}
.stlfm .brand{cursor:pointer}
.stlfm .folder-card{text-decoration:none}
.stlfm .profile-wrap summary{list-style:none;cursor:pointer}
.stlfm .profile-wrap summary::-webkit-details-marker{display:none}
.stlfm .profile-menu a{display:block;padding:10px;border-radius:6px;font-size:13px}
.stlfm .profile-menu a:hover{background:var(--bg)}
.stlfm .thumbnail-link{display:block;height:100%;width:100%}
.stlfm .favorite-form{margin:0}
.stlfm .file-badge{pointer-events:none}
.stlfm .model-text{min-width:0}
.stlfm .model-name a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stlfm .sort-form{display:flex;align-items:center;gap:6px}
.stlfm .sort-form[data-stlfm-sort-ready="true"] .sort-submit{display:none}
.stlfm .segmented a{width:33px;height:32px;border:0;background:transparent;color:var(--muted);border-radius:5px;display:grid;place-items:center}
.stlfm .segmented a.active{background:var(--soft);color:var(--accent-dark)}
.stlfm .permissions-fieldset{border:0;margin:14px 0 0;padding:0;min-width:0}
.stlfm .permissions-fieldset legend{font-size:13px;font-weight:700;padding:0;margin:0 0 6px}
.stlfm .detail-favorite-form .btn{width:100%}
.stlfm .detail-image .placeholder-thumb svg{width:100px;height:100px}
.stlfm .dialog-actions input.btn.primary{width:auto;background:var(--accent);border-color:var(--accent);color:#191b1f}
.stlfm .nav-toggle{display:none}
@media(max-width:850px){
  .stlfm .nav-toggle{position:absolute;display:block;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .stlfm .nav-toggle:checked ~ .shell .sidebar{transform:translateX(0)}
  .stlfm .nav-toggle:checked ~ .shell .overlay{display:block;position:fixed;inset:0;background:#19232c77;z-index:29}
  .stlfm .nav-toggle:focus-visible ~ .shell .menu-toggle{outline:2px solid var(--accent);outline-offset:3px}
  .stlfm .menu-toggle{cursor:pointer}
}

.stlfm .dialog .detail-favorite-form{padding:0}
/* Agregados propios sobre el tema del kit (todo bajo .stlfm). */

html, body.stlfm-body { margin: 0; background: #161a20; }
html.modal-open { overflow: hidden; }
turbo-frame#modal { display: contents; }

/* ------------------------------------------------------------ paleta de carpetas
   (las claves son las de Folder::PALETTE; nunca un color libre en el HTML) */
.stlfm .folder-color-naranja { --foldercolor: #d48443; }
.stlfm .folder-color-azul { --foldercolor: #4b83ad; }
.stlfm .folder-color-verde { --foldercolor: #4f9e6a; }
.stlfm .folder-color-violeta { --foldercolor: #8a6fc4; }
.stlfm .folder-color-rosa { --foldercolor: #c9628c; }
.stlfm .folder-color-amarillo { --foldercolor: #c9a23f; }
.stlfm .folder-color-celeste { --foldercolor: #3fa6b5; }
.stlfm .folder-color-gris { --foldercolor: #8a94a1; }
.stlfm .folder-dot { background: var(--foldercolor, #d48443); }

/* ------------------------------------------------------------ avisos */
.stlfm .flash {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px;
  border-radius: 9px; font-size: 14px; line-height: 1.45;
  background: #1f3329; border: 1px solid #2f5a44; color: #b5ecd0;
}
.stlfm .flash svg { width: 18px; height: 18px; margin-top: 1px; color: #6fd3a1; }
.stlfm .flash-alert { background: #3a2321; border-color: #6e3a35; color: #ffc2bb; }
.stlfm .flash-alert svg { color: #ff8f84; }

/* ------------------------------------------------------------ imagen de las tarjetas */
.stlfm .thumb-media { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.stlfm .thumb-media img { width: 100%; height: 100%; display: block; }
.stlfm .thumb-media img.cover { object-fit: cover; }
.stlfm .thumb-media img.render { object-fit: contain; padding: 6%; }
.stlfm .thumb { background: radial-gradient(circle at 50% 40%, #3a414b 0%, #2a3038 70%); }
.stlfm .placeholder-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.stlfm .placeholder-thumb svg { width: 56px; height: 56px; }
.stlfm .thumb-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.stlfm .spinner {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 2px solid #4a5563; border-top-color: var(--accent);
  animation: stlfm-spin .8s linear infinite;
}
@keyframes stlfm-spin { to { transform: rotate(360deg); } }
.stlfm .model-card:hover .thumb img.render { transform: scale(1.04); }
.stlfm .model-meta .folder-dot { margin: 0; }
.stlfm .meta-sep { color: #5d6875; }

/* ------------------------------------------------------------ barra lateral y cuenta */
.stlfm .side-empty { padding: 4px 12px; font-size: 13px; color: #7d8a97; }
.stlfm .profile-email { padding: 0 9px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.stlfm .profile-menu a, .stlfm .profile-menu .profile-logout {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 6px;
  font-size: 13px; color: var(--ink); background: transparent; border: 0; text-align: left;
}
.stlfm .profile-menu a:hover, .stlfm .profile-menu .profile-logout:hover { background: #303944; }
.stlfm .profile-menu svg { width: 16px; height: 16px; color: var(--muted); }
.stlfm .profile-menu form { margin: 0; }

/* ------------------------------------------------------------ ventana de detalle */
.stlfm .dialog:focus { outline: none; }
.stlfm .detail-image .thumb-media img.render { padding: 8%; }
.stlfm .detail-image { background: radial-gradient(circle at 50% 40%, #3a414b 0%, #2a3038 70%); }
.stlfm .detail-facts strong { display: flex; align-items: center; gap: 6px; text-align: right; }
.stlfm .detail-files { border-top: 1px solid var(--line); padding-top: 12px; }
.stlfm .detail-files-title { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.stlfm .detail-files ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 170px; overflow: auto; }
.stlfm .detail-files li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
.stlfm .detail-files .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stlfm .detail-info .btn { width: 100%; }
.stlfm .detail-favorite-form { margin: 0; }
.stlfm .detail-page { padding: 24px; }
.stlfm .detail-page .modal-content { padding: 0; }

/* ------------------------------------------------------------ panel de administracion */
.stlfm .small { font-size: 12px; }
.stlfm .cell-sub { margin: 2px 0 0 46px; }
.stlfm td.wrap { white-space: normal; max-width: 340px; }
.stlfm .tag .folder-dot { margin: 0 6px 0 0; }
.stlfm .row-actions { text-align: right; }
.stlfm .row-actions form { display: inline; margin: 0; }
.stlfm .action-danger { color: #ff8f84; }
.stlfm .status { padding: 4px 8px; font-size: 12px; border-radius: 5px; font-weight: 700; }
.stlfm .status-on { background: #1f3a2d; color: #7fe0a6; }
.stlfm .status-wait { background: #3d3322; color: #f3c46b; }
.stlfm .status-off { background: #3b2a2a; color: #ff9b94; }
.stlfm .panel-actions { display: flex; justify-content: flex-end; padding: 0 20px 16px; }
.stlfm .panel-actions form { margin: 0; }
.stlfm .panel-empty { padding: 0 20px 20px; }
.stlfm .row-missing td { opacity: .6; }
.stlfm .color-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.stlfm .color-form .sort-select { padding-top: 7px; padding-bottom: 7px; }
.stlfm .color-form[data-stlfm-sort-ready="true"] .sort-submit { display: none; }
.stlfm .model-cell { display: flex; align-items: center; gap: 10px; }
.stlfm .table-thumb { width: 52px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; background: #2a3038; }
.stlfm .table-thumb .placeholder-thumb svg { width: 20px; height: 20px; }
.stlfm .table-thumb .thumb-status { display: none; }
.stlfm .table-thumb img.render { padding: 2px; }

/* Formularios dentro de la ventana */
.stlfm .dialog .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.stlfm .dialog .label-like { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.stlfm .dialog .check-inline { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; font-weight: 500; }
.stlfm .field-hint { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.stlfm .field-hint svg { width: 15px; height: 15px; color: var(--accent); }
.stlfm .dialog .flash { margin: 0 0 6px; }
@media (max-width: 520px) { .stlfm .dialog .form-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ login y contrasena */
.stlfm.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at top, #2a1f19 0%, var(--bg) 60%);
}
.stlfm .auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; padding: 30px 28px 22px; box-shadow: 0 20px 60px #0007;
}
.stlfm .auth-brand .brand { padding: 0 0 24px; }
.stlfm .auth-title { font-family: Manrope, system-ui; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.stlfm .auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; line-height: 1.5; }
.stlfm .stack-form { display: flex; flex-direction: column; gap: 14px; }
.stlfm .stack-form .field { display: flex; flex-direction: column; gap: 6px; }
.stlfm .stack-form label { font-size: 13px; font-weight: 700; }
.stlfm .stack-form input:not([type=checkbox]):not([type=submit]) {
  width: 100%; border: 1px solid #424e5c; border-radius: 8px; padding: 11px 12px;
  background: #171e26; color: var(--ink); outline: none;
}
.stlfm .stack-form input:focus { border-color: var(--accent); }
.stlfm .stack-form input::placeholder { color: #8190a0; }
.stlfm .check-inline { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.stlfm .check-inline input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.stlfm .btn-block { width: 100%; }
.stlfm .auth-alt { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 6px; }
.stlfm .auth-alt a, .stlfm .link-button { color: var(--accent-dark); font-weight: 700; background: none; border: 0; padding: 0; font-size: 13px; }
.stlfm .auth-alt form { display: inline; margin: 0; }
.stlfm .auth-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.stlfm .auth-foot svg { width: 14px; height: 14px; color: var(--accent); }

/* ------------------------------------------------------------ icono de la marca (version anterior) */
.stlfm .brand-mark.brand-mark-classic { background: linear-gradient(135deg, #ff7a2f, #ff4f7a); color: #fff; }
.stlfm .brand-mark.brand-mark-classic svg { width: 27px; height: 27px; fill: currentColor; stroke: none; }

/* ------------------------------------------------------------ paginas de error */
.stlfm .error-page { text-align: center; }
.stlfm .error-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px;
  border-radius: 14px; background: #3a2a20; color: var(--accent);
}
.stlfm .error-icon svg { width: 28px; height: 28px; }
.stlfm .error-code { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.stlfm .error-page .auth-sub { margin-bottom: 22px; }
.stlfm .error-actions { display: flex; flex-direction: column; gap: 10px; }
.stlfm .error-actions .btn { width: 100%; justify-content: center; }
/*
 * Tema "STL for Makers" oscuro.
 *   fonts.css.erb          -> DM Sans y Manrope incluidas en el proyecto
 *   stlformakers_dark.css  -> hoja del kit de diseño (scope .stlfm)
 *   stlfm_app.css          -> agregados propios: login, avisos, paleta de carpetas, previews 3D
 *



 */
