/* Shared density rules. Keep reading text legible and touch controls spacious. */
:root{--ui-space:12px;--ui-panel:14px}
.nebula-scene{contain:paint;overflow:clip}
.nebula-theme #page-overzicht:before,.nebula-theme #page-muziek:before{display:none}
@media(max-width:900px),(hover:none) and (pointer:coarse){.nebula-scene>.nebula-parallax{inset:0}}
.app-shell{grid-template-columns:214px minmax(0,1fr)}
.sidebar{padding:18px 10px}
.sidebar-brand{padding:0 8px 18px;gap:10px}
.sidebar-brand strong{font-size:1.05rem}
.sidebar-brand .brand-mark{width:36px;height:40px}
.nav-label{margin:12px 10px 6px}
.side-nav{gap:4px}
.sidebar .nav-button{min-height:38px;padding:7px 10px;font-size:13px;gap:9px}
.sidebar .nav-button span[aria-hidden],.sidebar .nav-button span svg{width:20px;height:20px}
.sidebar .nav-category>summary{min-height:38px;padding:7px 10px;font-size:13px;gap:9px}
.sidebar .nav-category>summary [data-ui-icon]{width:18px;height:18px}
/* Inline category SVGs use the same fixed icon box as the other navigation icons. */
.sidebar .nav-category>summary .nav-category-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:#a78bfa}
.sidebar .nav-category>summary .nav-category-icon>svg{display:block;width:100%;height:100%}
.sidebar-foot{padding:12px 8px 0;font-size:12px}
.workspace-grid{grid-template-columns:minmax(0,1fr) 238px}
#main-content{padding:16px;min-width:0}
.topbar{min-height:68px;padding:10px 16px;gap:10px}
.topbar-title strong{font-size:14px}
.topbar-title .eyebrow{font-size:10px;letter-spacing:.13em}
.topbar-actions{gap:8px;flex-basis:360px;font-size:13px}
.topbar-actions .button{min-height:34px;padding:6px 10px;font-size:13px}
.topbar-actions .presence-chip{padding:6px 9px}
.page{font-size:14px;line-height:1.45}
.page h1{font-size:clamp(22px,1.8vw,26px);line-height:1.2;margin-bottom:6px}
.page h2{font-size:17px;line-height:1.35;margin:0 0 8px}
.page h3{font-size:14px;line-height:1.4;margin:12px 0 6px}
.page .page-heading{min-height:0;padding:0 0 12px;margin:0 0 14px;gap:12px}
.page .page-heading p{margin-bottom:4px}
.page .page-heading .muted{font-size:13px;line-height:1.45}
.page .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:4px}
.page :is(p,.hint,.muted){margin-bottom:10px}
.page :is(.hint,.muted,.message):empty{display:none}
.page .form-card .muted{min-height:0}
.page :is(.form-card,.bot-card,.settings-card,.suite-list,.ai-history,.ai-conversation,.mc-create,.mc-server,.mc-console,.mc-settings,.mc-files,.mc-resource,.mc-skin,.profile-card,.suggestion-card,.release-card,.voice-card){padding:var(--ui-panel);min-width:0}
.page :is(.mc-create,.mc-server,.mc-console,.mc-settings,.mc-files,.settings-card,.release-card){margin-bottom:var(--ui-space)}
.page .button{min-height:34px;padding:6px 10px;font-size:13px;line-height:1.4;border-radius:8px}
.page .button-group{gap:8px;margin-top:8px}
.page input:not([type=checkbox]):not([type=range]):not([type=color]),.page select{min-height:36px;padding:7px 10px;font-size:14px;line-height:1.4}
.page textarea{font-size:14px;padding:10px;line-height:1.5}
.page label{font-size:13px}
.page :is(.hint,small){font-size:12px;line-height:1.5}
.page .message{padding:9px 12px;margin:10px 0}
.page .section-head{gap:10px;margin-bottom:10px}
.page .suite-row{padding:9px 0;gap:12px}
.page .suite-row .button-group{margin-top:0}
.page .summary-grid{gap:12px;margin-bottom:14px}
.page .stat-card{min-height:100px;padding:14px;gap:4px}
.page .stat-card strong{font-size:20px}
.page .bot-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.page .code-lines{min-height:100px;max-height:320px}
.page .music-volume input[type=range]{width:100%;min-width:0;margin-inline:0}
#page-overzicht .home-card{min-height:70px;padding:12px}
#page-overzicht .home-card strong{font-size:23px}
#page-overzicht .home-launchpad{margin-bottom:14px}
#page-overzicht .home-shortcuts{gap:8px}
#page-overzicht .home-shortcuts .button{min-height:34px;padding:6px 10px}
.page :is(.mc-server-grid,.mc-resource-grid,.profile-grid,.presence-grid,.fivem-grid,.voice-grid){gap:12px;align-items:start}
.page .mc-server-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.page :is(.mc-create-form,.mc-settings-form,.mc-create-settings){gap:10px 12px}
.page .mc-create-settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));margin-top:12px}
.page .mc-create-options{padding:12px}
.page .mc-library{padding:14px;margin-top:16px}
.page .mc-library-search{gap:12px;margin:14px 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.page .mc-create-addon-row{padding:9px 0;gap:12px}
.page .mc-create-addon-row .button{min-height:34px}
.page .mc-manage-tabs{margin:10px 0 12px;gap:8px}
.page .mc-performance-grid{gap:10px}
.page .mc-performance-stat{padding:12px}
.page .mc-performance-stat strong{font-size:22px;margin:6px 0}
.page .mc-resource-grid.mc-skin-gallery{gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr))}
.page .mc-skin-gallery .mc-skin{gap:8px;padding:10px}
.page .mc-skin-gallery .mc-skin>img{height:180px}
.page .ai-layout{grid-template-columns:200px minmax(0,1fr);gap:12px}
.page .ai-message{padding:12px;margin-bottom:12px}
.page .ai-message>small{margin-bottom:6px}
.page #ai-messages{height:clamp(260px,45dvh,440px);margin:10px 0 12px}
.page .host-service-row{padding:12px;gap:12px;grid-template-columns:minmax(0,1fr) 100px auto}
.page .host-minecraft-row{padding:12px;gap:12px}
.page .host-service-tabs{margin-bottom:12px}
.page .files-gallery{gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.page .file-caption{padding:12px;gap:8px}
.page .file-caption p{margin-bottom:0}
.page .files-filters{gap:12px}
.page .ufc-event{padding:14px}
.page .ufc-event h2{font-size:17px}
.page .ufc-fighter h3{font-size:14px}

/* Keep discovery beside its preview instead of extending the whole server page. */
.page .mc-cosmetics{padding:14px;margin-bottom:14px}
.page .mc-cos-fold{padding:10px 14px;margin-bottom:14px;min-width:0}
.page .mc-cos-fold>summary{min-height:28px;align-content:center;cursor:pointer;font-size:14px;font-weight:700}
.page .mc-cos-fold>summary:focus-visible{outline:2px solid #c28bff;outline-offset:4px;border-radius:4px}
.page .mc-cos-fold>.mc-cosmetics{padding:0;margin:12px 0 0}
.page .mc-cos-layout{grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:16px;margin-top:12px}
.page .mc-cos-preview-box{position:static;min-width:0}
.page .mc-cos-stage{min-height:240px;max-height:310px;border-radius:10px}
.page .mc-cos-stage canvas{max-height:310px;object-fit:contain}
.page .mc-cos-tabs{margin-bottom:10px;gap:6px}
.page .mc-cos-tabs button{min-height:34px;padding:6px 9px;font-size:13px}
.page .mc-cos-search{gap:5px;margin-bottom:8px}
.page .mc-cos-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:3px}
.page .mc-cos-choice-body{min-height:132px;padding:8px;gap:5px;font-size:12px}
.page .mc-cos-choice-image{height:74px}
.page .mc-cos-creator{font-size:11px}
.page .mc-cos-feedback{min-height:0}
.page .mc-cos-feedback:empty{display:none}
.page .mc-cos-options fieldset{margin-bottom:12px}
.page .mc-cos-pagination{margin:8px 0 12px}
.page .mc-cos-connection{margin-top:12px;padding-top:12px}
.members-panel{top:calc(var(--topbar-height,68px) + 12px);height:calc(100dvh - var(--topbar-height,68px) - 100px);margin:12px 12px 0 0;padding:12px}
.members-heading{margin-bottom:8px}
.members-heading h2{font-size:13px}
.members-panel>p{margin:6px 0}
.members-actions .button{width:34px;height:34px;min-height:34px;padding:7px}

/* Independent columns avoid a blank grid row below the shorter PC card. */
#page-pc .pc-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start}
.pc-tools-column{display:grid;gap:12px;min-width:0;align-content:start}
#page-pc .pc-grid .form-card{padding:14px}
#page-pc .pc-preview{display:block;aspect-ratio:16/9;width:100%;height:auto;max-height:200px;object-fit:contain;border-radius:8px;background:#08050f}
#page-pc .pc-preview[hidden]{display:none}
#page-pc .pc-slider{grid-template-columns:105px minmax(0,1fr) 40px;gap:8px;margin:5px 0;min-height:28px}
#page-pc .pc-slider label{margin:0;font-size:12px}
#page-pc .pc-slider input[type=range]{min-height:24px;height:24px;padding:0;margin:0;min-width:0}
#page-pc .pc-slider output{font-size:12px}
#page-pc .pc-swatches{gap:8px}
#page-pc .pc-swatches button{min-width:34px;min-height:34px}

@media(min-width:1101px) and (max-width:1350px){.app-shell{grid-template-columns:196px minmax(0,1fr)}.workspace-grid{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:1100px){.workspace-grid{display:block}.members-panel{top:0;width:min(340px,calc(100vw - 24px));height:100dvh;margin:0;padding:20px 16px;z-index:21}.page .ai-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:850px){#page-pc .pc-grid{grid-template-columns:1fr}.page .host-service-row{grid-template-columns:minmax(0,1fr) auto}.page .host-service-row .button-group{grid-column:1/-1}}
@media(max-width:700px){
 .app-shell{display:block}.sidebar{padding:10px}.sidebar-brand{display:none}.sidebar .nav-button,.sidebar .nav-category>summary{min-height:44px}.topbar{min-height:60px;padding:10px 12px}.topbar-actions{flex-basis:auto;gap:8px}#main-content{padding:12px}.page .ai-layout{grid-template-columns:1fr}.page .page-heading{padding:0 0 10px;margin-bottom:12px}.page h1{font-size:22px}.page :is(.mc-create-form,.mc-settings-form){grid-template-columns:1fr}.page .files-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}#page-pc .pc-slider{grid-template-columns:95px minmax(0,1fr) 38px}.page .mc-cos-layout{grid-template-columns:1fr;gap:12px}.page .mc-cos-preview-box{max-width:280px}.page .mc-cos-stage,.page .mc-cos-stage canvas{max-height:260px}.page .mc-cos-grid{max-height:320px}
}
@media(pointer:coarse),(max-width:700px){
 .page .mc-cos-fold>summary{min-height:44px}
 .page .button,#page-overzicht .home-shortcuts .button,.page .mc-create-addon-row .button,.page .mc-cos-tabs button,.topbar-actions .button,.sidebar .nav-button,.sidebar .nav-category>summary{min-height:44px}.page input:not([type=checkbox]):not([type=range]):not([type=color]),.page select,.page textarea{min-height:44px;font-size:16px}.members-actions .button{width:44px;height:44px;min-height:44px}#page-pc .pc-swatches button{min-width:44px;min-height:44px}#page-pc .pc-slider{min-height:40px}#page-pc .pc-slider input[type=range]{min-height:32px;height:32px}
}

/* Member rail belongs exclusively to the overview, on desktop and mobile. */
body.members-hidden .workspace-grid{grid-template-columns:minmax(0,1fr)}
body.members-hidden #server-members,body.members-hidden #members-toggle,body.members-hidden #members-scrim{display:none!important}
