/* DocSpace — nouveaux espaces, sans changer les couleurs choisies par le membre. */
.hub-shell{max-width:1160px;margin:0 auto;padding:4px 0 24px;--hub-soft:color-mix(in srgb,var(--panel) 80%,var(--bg));--hub-tint:color-mix(in srgb,var(--button) 12%,var(--panel));--hub-green:#94dfc6}
.hub-shell *{min-width:0;box-sizing:border-box}
.hub-eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--muted);text-transform:uppercase}
.hub-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 0 32px;border-bottom:1px solid var(--border);margin-bottom:24px;position:relative}
.hub-hero>div:first-child{position:relative;z-index:1;max-width:620px}
.hub-hero h2{font-size:clamp(27px,3vw,40px);line-height:1.12;letter-spacing:-.045em;margin:12px 0 14px;font-weight:750}
.hub-hero p{line-height:1.7;font-size:13px;color:var(--muted);max-width:480px;margin:0}
.hub-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:20px}
.hub-hero-actions button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:9px;font-size:12px}
.hub-hero-actions .icon{width:17px;height:17px}
.hub-art{position:relative;flex:0 0 165px;height:145px;--art:#b8a7ef}
.hub-art.green{--art:#92e1c8}
.hub-art-orbit{width:130px;height:130px;border:1px solid color-mix(in srgb,var(--art) 25%,transparent);border-radius:50%;position:absolute;top:8px;right:4px}
.hub-art-orbit:after{content:'';position:absolute;width:5px;height:5px;background:var(--art);border-radius:50%;left:18px;top:13px}
.hub-art-tiles{position:absolute;display:grid;grid-template-columns:repeat(3,28px);grid-template-rows:repeat(3,28px);gap:5px;transform:rotate(-9deg);left:29px;top:25px}
.hub-art-tiles i{border-radius:6px;background:var(--art);box-shadow:inset 0 -4px 0 #0002}
.hub-art-tiles .tile-0,.hub-art-tiles .tile-5,.hub-art-tiles .tile-6{opacity:.15}.hub-art-tiles .tile-1,.hub-art-tiles .tile-7{opacity:.55}
.hub-art-note{position:absolute;right:0;bottom:5px;font-size:30px;color:var(--art)}
.hub-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
.hub-stats>button{border:1px solid var(--border);background:var(--panel);padding:17px 18px;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;transition:border-color .15s}
.hub-stats>button:hover{border-color:var(--button)}
.hub-stats>button>span{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted)}
.hub-stats .icon{width:15px;height:15px}
.hub-stats strong{font-size:29px;line-height:1;margin:15px 0 8px;letter-spacing:-.04em}
.hub-stats small{color:var(--muted);font-size:11px}
.hub-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.hub-panel{border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:19px}
.hub-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.hub-section-head h3{font-size:15px;margin:0;letter-spacing:-.015em}
.hub-section-head button{border:0;background:transparent;padding:4px 0;color:var(--muted);font-size:11px}
.hub-section-head button:hover{color:var(--text)}
.hub-empty{padding:15px 3px 20px;line-height:1.6}
.hub-empty strong{font-size:13px;font-weight:600}
.hub-empty p{color:var(--muted);font-size:12px;margin:8px 0;line-height:1.7}
.hub-empty button{font-size:12px;padding:8px 12px;margin-top:8px}
.hub-resume,.hub-person,.hub-activity{display:flex;align-items:center;gap:11px;width:100%;background:transparent;text-align:left;padding:11px 0;border:0;border-radius:0;border-bottom:1px solid var(--border)}
.hub-resume:last-child,.hub-person:last-child,.hub-activity:last-child{border-bottom:0}
.hub-resume>span:nth-child(2),.hub-person>span:nth-child(2),.hub-activity>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}
.hub-resume strong,.hub-person strong{font-size:12px}.hub-resume small,.hub-person small,.hub-activity small{font-size:11px;color:var(--muted);line-height:1.45}
.hub-resume small{max-width:230px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.hub-resume>b{font-size:10px;padding:3px 6px;background:var(--button);color:white;border-radius:6px}
.hub-channel-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--hub-tint);color:var(--text);font-size:18px}
.hub-resume .avatar,.hub-person .avatar{width:32px;height:32px;flex-shrink:0;font-size:11px}
.hub-activity strong{font-size:12px;font-weight:550;line-height:1.5}
.hub-activity-mark{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:8px;background:var(--hub-tint)}
.hub-activity-mark .icon{width:16px;height:16px}.hub-activity b{color:var(--muted);font-size:12px}
.hub-message{background:transparent;border:0;border-bottom:1px solid var(--border);text-align:left;padding:13px 0;width:100%;border-radius:0;font-size:12px;line-height:1.6}
.hub-message:last-child{border-bottom:0}.hub-message>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-message-header{display:flex!important;justify-content:space-between;gap:12px;margin-bottom:5px}.hub-message-header small{color:var(--muted);font-size:10px}
.hub-update-line{display:flex;justify-content:flex-end;align-items:center;gap:12px;font-size:10px;color:var(--muted);margin-top:20px}
.hub-update-line button{border:0;background:transparent;color:var(--muted);font-size:10px;padding:0}
.hub-live-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.hub-live-label i{width:6px;height:6px;border-radius:50%;background:#72d8b6}
.hub-discover .hub-hero{border:0;padding-bottom:6px;margin-bottom:22px}
.hub-destinations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.hub-destination{position:relative;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:13px;overflow:hidden;padding:0;text-align:left;--art:#b7a3f1;transition:transform .15s,border-color .15s}
.hub-destination.blue{--art:#8dbcef}.hub-destination.red{--art:#ec9fa0}
.hub-destination:hover{border-color:var(--art);transform:translateY(-3px)}
.hub-destination-art{position:relative;display:block;width:100%;height:132px;background:color-mix(in srgb,var(--art) 8%,var(--panel));overflow:hidden;border-bottom:1px solid var(--border)}
.hub-destination-art i{position:absolute;width:86px;height:86px;left:calc(50% - 43px);top:22px;border-radius:18px;border:1px solid color-mix(in srgb,var(--art) 45%,transparent);transform:rotate(-10deg);box-shadow:12px 10px 0 color-mix(in srgb,var(--art) 8%,transparent)}
.hub-destination-art b{position:absolute;inset:0;display:grid;place-items:center;font-size:48px;color:var(--art);font-weight:500}
.hub-destination-art em{position:absolute;left:27%;top:18px;font-size:14px;font-style:normal;color:var(--art)}
.hub-destination-text{padding:21px 18px 24px;display:flex;flex-direction:column;gap:10px}
.hub-destination-text small{color:var(--art);font-size:9px;font-weight:750;letter-spacing:.12em}
.hub-destination-text strong{font-size:22px;letter-spacing:-.035em}
.hub-destination-text>span{color:var(--muted);font-size:12px;line-height:1.7;max-width:210px}
.hub-destination-arrow{position:absolute;right:17px;bottom:22px;font-size:17px;color:var(--art)}
.hub-discover-section{margin-top:32px}.hub-discover-section .hub-section-head h3{font-size:17px}
.hub-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hub-rooms>.hub-empty{grid-column:1/-1;border:1px dashed var(--border);border-radius:12px;padding:23px;text-align:center;background:color-mix(in srgb,var(--panel) 50%,transparent)}
.hub-room{padding:17px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.hub-room-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.hub-room-symbol{font-size:23px;color:var(--hub-green)}
.hub-tag{font-size:9px;color:var(--muted);border:1px solid var(--border);padding:4px 7px;border-radius:5px}
.hub-room>strong{font-size:14px;display:block}.hub-room>small{font-size:11px;color:var(--muted);display:block;margin-top:6px}
.hub-room-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}
.hub-room-bottom>span{font-size:10px;color:var(--muted);font-family:monospace}.hub-room-bottom button{font-size:11px;padding:7px 12px}
.hub-corners{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hub-corners>button{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--border);padding:15px 12px;border-radius:10px;text-align:left}
.hub-corners>button>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:5px;overflow:hidden}
.hub-corners strong{font-size:12px}.hub-corners small{font-size:9px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.hub-corners b{font-size:12px;color:var(--muted)}.hub-corner-mark{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;font-size:17px;border-radius:8px;background:var(--hub-tint)}
.hub-discover-footer{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}
.hub-drive-shortcut,.hub-season-shortcut{border:1px solid var(--border);background:var(--panel);padding:18px;border-radius:11px;display:flex;align-items:center;gap:13px;text-align:left}
.hub-drive-shortcut>span,.hub-season-shortcut>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:7px}
.hub-drive-shortcut strong,.hub-season-shortcut strong{font-size:12px}.hub-drive-shortcut small,.hub-season-shortcut small{color:var(--muted);font-size:10px}.hub-season-shortcut>span:first-child{color:#e8b77e;font-size:23px}
.hub-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-game-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--panel);--art:#b7a3f1}
.hub-game-card.green{--art:#94d9b3}.hub-game-card.blue{--art:#8dbcef}.hub-game-card.pink{--art:#d7a0d7}.hub-game-card.orange{--art:#e7bb8e}
.hub-game-cover{height:112px;display:grid;place-items:center;background:color-mix(in srgb,var(--art) 10%,var(--panel));position:relative;overflow:hidden}
.hub-game-cover>span{font-size:48px;position:relative;color:var(--art);z-index:1}.hub-game-cover>i{position:absolute;border:1px solid color-mix(in srgb,var(--art) 30%,transparent);width:75px;height:75px;border-radius:19px;transform:rotate(-12deg)}
.hub-game-cover .hub-game-fav{position:absolute;top:10px;right:10px;font-size:17px;border-radius:8px;background:color-mix(in srgb,var(--panel) 80%,transparent);color:var(--art);padding:4px 8px;z-index:2}
.hub-game-copy{padding:17px}.hub-game-copy>small{font-size:8px;letter-spacing:.06em;color:var(--art)}.hub-game-copy h3{font-size:18px;letter-spacing:-.035em;margin:9px 0}
.hub-game-copy p{font-size:11px;line-height:1.7;color:var(--muted);min-height:40px;margin-bottom:19px}.hub-game-copy>div{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.hub-game-copy>div>span{font-size:9px;color:var(--muted)}.hub-game-copy button{font-size:11px;padding:8px 12px}
.hub-arcade #dsArcadeLobbyRoot{margin-top:32px}.hub-arcade .ds-lobby-browser,.hub-arcade .ds-arcade-progression{border-color:var(--border);border-radius:12px;background:var(--panel)}
.hub-home-nav{margin:5px 0 11px}.hub-nav-divider{height:1px;background:var(--border);margin:12px 5px}
.hub-nav-group{margin-bottom:10px}.hub-nav-group summary{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.045em;cursor:pointer;padding:10px 4px;text-transform:uppercase}
.hub-nav-group summary>span{float:right;margin-right:5px}.hub-nav-channel{display:flex;align-items:center;gap:3px}
.hub-nav-channel>.nav-item{flex:1;min-width:0}.hub-nav-channel>.nav-item>span:nth-child(2){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hub-nav-star{font-size:13px;padding:5px 4px;width:22px;flex:0 0 22px;background:transparent;color:var(--muted);opacity:.3;border:0}
.hub-nav-star[aria-pressed="true"],.hub-nav-channel:hover .hub-nav-star,.hub-nav-star:focus-visible{opacity:1;color:#d4c197}
.hub-favorite-hint{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin:0 8px 10px}
body[data-hub-view="files"] .v37-drive-head{border-bottom:1px solid var(--border);padding-bottom:22px;margin-bottom:24px}
body[data-hub-view="files"] .v37-drive-head h2{font-size:31px;letter-spacing:-.045em}
.v37-drive-toolbar{border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:12px;gap:10px}
.v37-drop-zone{border-radius:13px!important;min-height:100px;display:flex;flex-direction:column;justify-content:center;background:color-mix(in srgb,var(--button) 4%,var(--panel))!important}
.v37-drive-item{border:1px solid var(--border)!important;border-radius:11px!important;background:var(--panel)!important;padding:13px!important}
.v37-drive-list{gap:12px!important}.v37-file-main strong{font-size:12px}.v37-file-actions{flex-wrap:wrap;gap:7px}.v37-file-actions button{font-size:10px;padding:7px 9px}
.v37-file-thumb{width:58px;height:58px;object-fit:cover;border-radius:9px;flex-shrink:0}.v37-file-icon{border-radius:9px!important;background:var(--hub-tint,var(--bg))!important}
.v37-progress.failed{background:color-mix(in srgb,#ee6675 10%,var(--panel));color:#ee6675}.v37-progress.failed i{display:none}
#hub-movies{max-width:880px;width:calc(100% - 30px);padding:24px;max-height:88dvh;overflow:auto}
#hub-movies header,#hub-file-preview header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
#hub-movies header h2{font-size:26px;margin-top:8px;letter-spacing:-.04em}.hub-movie-tabs{display:flex;gap:8px;margin-bottom:20px}.hub-movie-tabs .active{background:var(--button);color:white}
#hub-movie-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:9px}#hub-movie-form>div{display:flex;gap:9px}#hub-movie-form input{flex:1;min-width:0}
#hub-movie-results{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hub-movie-card{display:flex;gap:14px;border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--panel);align-items:flex-start}
.hub-movie-card>img,.hub-no-poster{width:96px;height:144px;object-fit:cover;border-radius:7px;flex:0 0 96px}.hub-no-poster{display:grid;place-items:center;background:var(--bg);font-size:30px}
.hub-movie-card>div:last-child{min-width:0;flex:1}.hub-movie-card small{font-size:9px;color:var(--muted)}.hub-movie-card h3{font-size:15px;margin:8px 0}.hub-movie-card p{font-size:11px;line-height:1.65;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hub-movie-card button{font-size:10px;padding:7px 10px;margin-top:12px}.hub-tmdb-credit{display:block;margin-top:22px;font-size:10px;color:var(--muted);line-height:1.6}
#hub-file-preview{width:min(850px,calc(100% - 28px));max-height:90dvh;overflow:auto;padding:22px}#hub-file-title{font-size:18px;word-break:break-word}
#hub-file-body img,#hub-file-body video{display:block;max-width:100%;max-height:65dvh;margin:auto;border-radius:8px}#hub-file-body iframe{width:100%;height:65dvh;border:0;border-radius:8px}.hub-download{display:inline-flex;gap:8px;align-items:center;padding:10px 14px;background:var(--button);color:white;border-radius:8px;font-size:12px;margin-top:16px}
.rail .rail-logo{background:transparent;border:0;color:var(--text);padding:0}.rail .rail-logo.active{color:#b8a7ef}
@media(min-width:761px){body[data-hub-view="home"] #page,body[data-hub-view="discover"] #page,body[data-hub-view="arcade"] #page{padding:24px 28px}}
@media(max-width:1150px) and (min-width:761px){.hub-art{display:none}.hub-home-grid{grid-template-columns:1fr}.hub-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-corners{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-destination-art{height:104px}.hub-destination-art i{height:66px;width:66px;left:calc(50% - 33px);top:20px}.hub-destination-text{padding:16px 12px 22px}.hub-destination-text strong{font-size:18px}.hub-destination-text>span{font-size:11px}.hub-destination-arrow{display:none}.hub-stats{gap:8px}.hub-stats>button{padding:14px 11px}}
@media(max-width:760px){
  #app{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}.mobile-nav{height:64px!important;padding:3px 4px calc(3px + env(safe-area-inset-bottom))!important;gap:3px!important;align-items:center}
  .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;padding:7px 2px!important;min-width:0;height:54px;border-radius:10px!important;background:transparent}
  .mobile-nav button>.icon,.mobile-nav .icon{width:18px;height:18px}.mobile-nav small{font-size:9px;color:var(--muted)}.mobile-nav button.active{background:var(--hub-tint,var(--panel))!important}.mobile-nav button.active small{color:var(--text)}
  .members.open{bottom:64px!important}.hub-shell{padding:0 0 18px}.hub-hero{padding:16px 0 25px;margin-bottom:19px;gap:12px}.hub-hero h2{font-size:30px}.hub-hero p{font-size:12px}.hub-art{display:none}.hub-hero-actions{margin-top:17px}.hub-hero-actions button{font-size:11px;padding:9px 12px}
  .hub-stats{gap:7px;margin-bottom:18px}.hub-stats>button{padding:13px 10px}.hub-stats>button>span{font-size:9px;gap:5px}.hub-stats>button>span .icon{display:none}.hub-stats strong{font-size:25px;margin:12px 0 7px}.hub-stats small{font-size:9px}
  .hub-home-grid{grid-template-columns:1fr;gap:14px}.hub-panel{padding:17px}.hub-destinations{grid-template-columns:1fr;gap:12px}.hub-destination{display:grid;grid-template-columns:108px 1fr;min-height:140px}
  .hub-destination-art{height:100%;border:0;border-right:1px solid var(--border)}.hub-destination-art i{width:66px;height:66px;left:22px;top:calc(50% - 33px);border-radius:14px}.hub-destination-art b{font-size:38px}.hub-destination-art em{left:16px;top:24px}
  .hub-destination-text{padding:19px 17px}.hub-destination-text strong{font-size:22px}.hub-destination-text>span{font-size:11px;max-width:200px}.hub-destination-arrow{right:13px;bottom:18px;font-size:13px}.hub-discover-section{margin-top:26px}
  .hub-rooms,.hub-corners{grid-template-columns:1fr}.hub-discover-footer{grid-template-columns:1fr}.hub-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hub-game-copy{padding:13px}.hub-game-copy h3{font-size:16px}.hub-game-copy p{font-size:10px;min-height:51px}.hub-game-copy>small{font-size:7px}.hub-game-cover{height:96px}.hub-game-copy>div{align-items:flex-start;flex-direction:column;gap:10px}.hub-game-copy button{width:100%;padding:9px 10px}
  .hub-arcade .ds-lobby-heading{flex-direction:column;align-items:stretch;gap:16px}.hub-arcade .ds-lobby-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.hub-arcade .ds-lobby-filters{display:grid;grid-template-columns:1fr 1fr}.hub-arcade .ds-lobby-filters>*{min-width:0}.hub-arcade .ds-lobby-card{flex-wrap:wrap}.hub-arcade .ds-lobby-code{display:none}
  .v37-drive-toolbar{display:flex!important;flex-wrap:wrap}.v37-drive-toolbar>input{width:100%}.v37-drive-toolbar select{min-width:0;flex:1}.v37-drive-head{flex-direction:column;align-items:flex-start}.v37-drive-head-actions{display:flex;flex-wrap:wrap;gap:8px}.v37-drive-item{flex-direction:column;align-items:stretch}.v37-file-actions select{max-width:115px}.v37-file-main strong{word-break:break-word}.v37-file-actions button{font-size:10px;padding:7px}
  #hub-movies{padding:18px}#hub-movie-results{grid-template-columns:1fr}#hub-movie-form>div{gap:7px}#hub-movie-form button{font-size:11px;padding:9px}#hub-movies header h2{font-size:24px}.hub-movie-card>img,.hub-no-poster{width:82px;height:123px;flex-basis:82px}
}
@media(prefers-reduced-motion:reduce){.hub-destination{transition:none}.hub-destination:hover{transform:none}}
