/* v3: early navigation, one activity surface and progressive disclosure. */
#workspace[data-active-tab=builds] #preparation-status[data-state=ready]{display:none}.compact-panel #client-versions .compact-client-surface{border:0;border-radius:0}.compact-panel #client-versions .compact-client-surface .published-release{padding:10px 0}.compact-panel #client-versions .compact-client-surface .prepared-release{border-radius:6px;margin-top:14px}
#mod-catalog-dialog[open]{display:flex;flex-direction:column}#mod-catalog-dialog .drawer-heading{flex:none}.compact-panel #mod-catalog-dialog .catalog{display:flex;flex-direction:column;flex:1;min-height:0}.compact-panel #mod-catalog-dialog .catalog #search-form{flex:none}.compact-panel #mod-catalog-dialog .catalog .results{flex:1;min-height:0;max-height:none}
.compact-panel .badge{font-size:12px;font-weight:600;line-height:1.4}.compact-panel button.icon-button[data-close]{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:none}.compact-panel .icon-button .panel-icon{width:18px;height:18px}
.compact-panel .project-header{flex-direction:row}.compact-panel .composition-updates .update-actions button{line-height:18px}.compact-panel .update-button::before{content:'';width:16px;height:16px;flex:none;background:url('/static/icons/mod-update.svg') center/contain no-repeat}
.compact-panel .mod-filters select{height:36px;min-height:36px;padding:7px 9px}
@media(max-width:760px){.compact-panel .compact-sort .sort-direction{font-size:0!important;width:36px;overflow:hidden}.compact-panel .compact-sort .sort-direction::first-letter{font-size:16px}}
.compact-panel .panel-icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none}.compact-panel button:has(>.panel-icon),.compact-panel a:has(>.panel-icon){display:inline-flex;align-items:center;justify-content:center;gap:7px}.compact-panel button,.compact-panel .button{font-size:14px;line-height:1.4}.compact-panel #workspace>.project-cover{display:none}.compact-panel .project-header{min-height:0;margin:22px 0 12px;padding:0;display:flex;align-items:center;justify-content:space-between;gap:18px}.compact-panel .project-header>div:first-child{min-width:0;flex:1}.compact-panel .project-header .eyebrow{display:none}.compact-panel .project-title-line{display:flex;align-items:center;gap:12px}.compact-panel #project-icon{width:48px;height:48px;object-fit:cover;border-radius:8px;flex:none}.compact-panel .project-header h1{font-size:clamp(23px,2.2vw,30px);line-height:1.25;overflow-wrap:anywhere;margin:0}.compact-panel #project-meta{font-size:13px;line-height:1.5;margin:6px 0 0}.compact-panel .project-header>.actions{flex-wrap:wrap;gap:8px;justify-content:flex-end}.compact-panel .project-header>.actions>button,.compact-panel .build-actions>summary{min-height:36px;padding:8px 12px;font-size:14px}.compact-panel .tabs{margin:0 0 14px;gap:4px;overflow-x:auto;flex-wrap:nowrap}.compact-panel .tabs button{font-size:14px;white-space:nowrap;padding:12px 16px}.compact-panel #workflow-bar{margin:12px 0;padding:10px 14px}.compact-panel .workflow-steps li,.compact-panel .workflow-links button{font-size:13px}.compact-panel .workflow-links{gap:12px}.compact-panel .workflow-steps{gap:10px}.compact-panel .workflow-steps li:not(:last-child)::after{width:16px}.compact-panel .project-identity{padding:8px 12px;font-size:13px}.project-identity code{font-size:12px;overflow-wrap:anywhere;display:block;margin-top:8px}
.compact-panel #mod-changes-warning,.compact-panel #live-build-status,.compact-panel #auto-build-status{display:none!important}.compact-panel .dashboard-stats .metrics{margin-top:0}.compact-panel .dashboard-stats .metrics article{padding:12px 16px}.compact-panel .dashboard-stats .metrics span{font-size:13px}.compact-panel .server-monitor span,.compact-panel .server-monitor small{font-size:13px}.compact-panel .overview-columns{grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr)}.compact-panel .overview-client #overview-cover-image{display:none}.compact-panel .overview-client #overview-pack-name{display:none}.compact-panel .overview-client #overview-pack-meta{font-size:14px}.compact-panel .instance-path{font-size:13px;overflow-wrap:anywhere}.compact-panel .overview-server .console{max-height:200px;min-height:0;font-size:13px}.compact-panel #overview-events{list-style:none;padding:0;margin:0 0 10px}.compact-panel #overview-events li{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.compact-panel #overview-events .panel-icon{color:#58735d;margin-top:2px}.compact-panel #overview-events strong{display:block;font-size:14px;font-weight:600;line-height:1.5}.compact-panel #overview-events small{display:block;font-size:13px;color:#657363;margin-top:3px}.compact-panel .raw-events{font-size:13px;border:0;padding:8px 0}.compact-panel .raw-events summary{cursor:pointer;color:#4a6252}.compact-panel .overview-server-actions{margin-top:16px}.compact-panel .overview-server-actions button{min-height:36px;padding:8px 12px}
#preparation-status{margin:12px 0 18px;padding:16px;border:1px solid #cbd8c1;border-radius:8px;background:#f2f6ec}#preparation-status[data-state=error]{background:#fff4ec;border-color:#e3baa0}#preparation-status[data-state=waiting]{background:#fff8eb;border-color:#e6ce9d}#preparation-status[data-state=active]{background:#f0f5ed}#preparation-status[data-state=ready]{padding:12px 16px}#workspace:not([data-active-tab=overview]):not([data-active-tab=builds]) #preparation-status[data-state=ready]{display:none}.preparation-head{display:flex;gap:12px;align-items:flex-start}.preparation-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #c7d6bf;border-radius:8px;background:#fffefb;color:#356243}.preparation-head>div:first-of-type{flex:1;min-width:0}.preparation-head strong{display:block;font-size:15px;font-weight:650;line-height:1.5}.preparation-head p{font-size:14px;line-height:1.55;margin:4px 0;overflow-wrap:anywhere}.preparation-head small{font-size:13px;color:#677261;line-height:1.5}.preparation-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center;max-width:420px}.preparation-actions button{padding:8px 12px;min-height:36px}.preparation-actions .text-button{min-height:32px}.preparation-log{margin:10px 0 0;padding:0;border:0;font-size:13px}.preparation-log pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fffefb;padding:12px;border-radius:6px;max-height:160px;overflow:auto}#preparation-status .build-progress-section{margin:12px 0 0}
.compact-panel #tab-mods .columns{display:block}.compact-panel .selected{width:100%}.compact-panel .selected>.panel-title{gap:12px;flex-wrap:wrap}.compact-panel .selected>.panel-title h2{margin-right:auto}.compact-panel .selected>.panel-title button{min-height:36px;padding:8px 12px}.compact-panel .selected>.panel-title #resolve{font-size:13px}.compact-panel .mod-list-switch{margin-top:12px}.compact-panel .installed-search input{min-height:38px;padding:8px 12px;font-size:14px}.compact-panel .installed-search button{min-height:38px;padding:6px 12px}.composition-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.composition-toolbar .compact-sort{margin-left:auto}.compact-panel .compact-sort select,.compact-panel .compact-sort button{font-size:13px;min-height:36px}.compact-panel #composition-filters{position:relative;border:0;margin:0;padding:0;flex:none}.compact-panel #composition-filters>summary{display:flex;align-items:center;gap:7px;cursor:pointer;border:1px solid #cbd3c3;border-radius:6px;padding:8px 11px;font-size:13px;min-height:36px}.compact-panel #composition-filters .mod-filters{position:absolute;top:42px;left:0;z-index:6;width:250px;margin:0;background:#fffefb;border:1px solid #cbd3c3;box-shadow:0 8px 24px #18351c22;border-radius:7px;padding:14px;display:grid;gap:12px}.compact-panel .mod-filters label{font-size:13px;display:grid;gap:6px}.compact-panel .mod-filters select{max-width:none;width:100%;font-size:14px}.compact-panel .installed-tools{margin-top:0}.compact-panel #installed-count{font-size:13px}.composition-updates{position:relative;border:0;padding:0;margin:0}.composition-updates>summary{font-size:13px;font-weight:600;padding:8px 12px;border:1px solid #cbd3c3;border-radius:6px;cursor:pointer}.composition-updates .update-actions{position:absolute;right:0;top:42px;z-index:5;background:#fffefb;border:1px solid #cbd3c3;border-radius:7px;padding:8px;min-width:230px;display:grid;gap:6px;box-shadow:0 8px 24px #18351c22}.composition-updates .update-actions button{width:100%;text-align:left;justify-content:flex-start;min-height:36px;font-size:13px;padding:8px 12px}.compact-panel .compact-legend{border:0;margin:4px 0;padding:0;font-size:13px;color:#66745f}.compact-legend>summary{cursor:pointer}.compact-panel .mod-status-legend{font-size:13px;margin:8px 0}.compact-panel .mod-row{padding:11px 0}.compact-panel .mod-details>summary .mod-title-link{font-size:14px}.compact-panel .mod-version{display:inline;font-size:13px;max-width:180px}.compact-panel .mod-file-label{font-size:12px}.compact-panel .mod-detail-body label,.compact-panel .mod-detail-body button{font-size:13px}
#mod-catalog-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(600px,96vw);max-width:96vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #cbd3c3;border-radius:0;background:#fffefb;box-shadow:-12px 0 45px #13291e22}#mod-catalog-dialog::backdrop{background:#11291c44}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}.drawer-heading h2{font-size:21px;margin:0}.drawer-heading p{font-size:13px;color:#63745f;margin:7px 0 0}.panel-icon-button{width:36px;height:36px;min-height:36px;flex:none;padding:0;border:1px solid var(--line);border-radius:6px;background:transparent}.compact-panel #mod-catalog-dialog .catalog{border:0;box-shadow:none;padding:20px 24px;margin:0}.compact-panel #mod-catalog-dialog .catalog>.panel-title{display:none}.compact-panel #mod-catalog-dialog .results{max-height:calc(100dvh - 285px);overflow:auto}.compact-panel #mod-catalog-dialog .search-row input,.compact-panel #mod-catalog-dialog .search-row select{font-size:14px;min-height:36px}.compact-panel #mod-catalog-dialog .search-row{grid-template-columns:minmax(0,1fr) auto}.compact-panel #mod-catalog-dialog .search-row #source{max-width:none}.compact-panel #mod-catalog-dialog .mod-info p{font-size:13px;line-height:1.5}
.compact-panel #client-versions{margin-top:0}.compact-client-surface{border:1px solid var(--line);border-radius:8px;overflow:hidden}.compact-panel .compact-client-surface .release-version{border:0;border-radius:0;padding:20px;margin:0;background:transparent}.compact-panel .compact-client-surface .release-version+.release-version{border-top:1px solid var(--line);background:#f7f9f2}.compact-panel .release-version header{border:0;margin-bottom:10px;padding:0}.compact-panel .release-version h3{font-size:16px}.compact-panel .release-version p.compact-release-date{font-size:16px;font-weight:600;margin:6px 0 10px;color:#253d2d}.compact-panel .release-tags span{font-size:13px}.compact-panel .release-version .release-controls{margin:14px 0 0}.compact-panel .release-version .release-controls button,.compact-panel .release-version .release-controls a{font-size:14px;min-height:36px;padding:8px 12px}.compact-panel .release-link,.compact-panel .release-technical{border:0;margin:10px 0 0;padding:4px 0;font-size:13px;color:#586d57}.release-link summary,.release-technical summary{cursor:pointer}.compact-panel .release-technical code{font-size:12px;overflow-wrap:anywhere;display:block;margin-top:8px}.compact-panel .release-technical .preparation-summary{margin-top:10px;font-size:13px}.compact-panel .release-delta{font-size:14px;margin-top:12px}.release-publish-note{font-size:13px;line-height:1.55;color:#66745f;margin:12px 0 0}.compact-panel #release-action-status{font-size:14px}.client-more{position:relative;border:0;padding:0;margin:0}.client-more>summary{font-size:14px;cursor:pointer;padding:8px 12px}.client-more>div{position:absolute;right:0;top:38px;min-width:220px;border:1px solid var(--line);border-radius:6px;background:#fffefb;padding:8px;z-index:4;box-shadow:0 8px 20px #17351e22}.client-more button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:8px}.compact-panel #build-list[data-status=building],.compact-panel #build-list[data-status=queued],.compact-panel #build-list[data-status=failed][data-needs-choices=false]{display:none}.compact-panel #build-list .build-row{border:0;padding:0;margin-top:16px;background:transparent}.compact-panel #build-list .build-top,.compact-panel #build-list .build-progress,.compact-panel #build-list .build-progress-section,.compact-panel #build-list .build-row>[data-install-log]{display:none}.manual-files-heading{margin:18px 0 12px}.manual-files-heading h3{font-size:16px;margin:0}.manual-files-heading p{font-size:13px;line-height:1.6;color:#62715e;margin:6px 0}.compact-panel .missing-file-card{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;display:flex;align-items:center;gap:16px;padding:12px 0;margin:0}.missing-file-card>span{flex:1;min-width:0}.missing-file-card strong{font-size:14px;display:block;overflow-wrap:anywhere}.missing-file-card small{font-size:13px;display:block;color:#6a7662;overflow-wrap:anywhere;margin-top:5px}.compact-panel .missing-file-card .manual-download{flex:none;padding:7px 12px;min-height:34px;font-size:13px}.compact-panel .manual-upload{margin-top:16px;font-size:14px;min-height:36px}
.compact-panel #project-dialog{width:680px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto}.compact-panel #project-form>.dialog-heading{margin-bottom:12px}.project-settings-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 18px;flex-wrap:wrap}.project-settings-tabs button{font-size:14px;padding:10px 12px;border-radius:0;background:transparent;color:#61715d;border-bottom:3px solid transparent}.project-settings-tabs button[aria-selected=true]{color:#234f35;border-bottom-color:#275d3d}.compact-panel .project-settings-pane label{font-size:14px;margin-bottom:14px}.compact-panel .project-settings-pane input,.compact-panel .project-settings-pane select,.compact-panel .project-settings-pane textarea{font-size:14px;padding:9px 12px;min-height:38px}.compact-panel .project-settings-pane .hint,.compact-panel .project-settings-pane small{font-size:13px;line-height:1.55}.compact-panel #project-form>button[type=submit]{min-height:38px;margin-top:14px;font-size:14px}.compact-panel .project-settings-pane>.form-grid{gap:14px}.compact-panel .project-settings-pane fieldset{border:0;padding:0;margin:0}.compact-panel .project-settings-pane legend{font-size:15px;font-weight:600;margin-bottom:12px}
.compact-panel .compact-history{border-collapse:collapse;width:100%;font-size:14px;margin-top:16px}.compact-history th{text-align:left;color:#63735f;font-size:13px;font-weight:600;border-bottom:1px solid var(--line);padding:10px}.compact-history td{padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:top}.compact-history td:first-child{width:55%}.compact-history td:last-child{text-align:right}.compact-history small{display:block;font-size:13px;color:#64715f;margin-top:5px;line-height:1.5}.compact-history details{font-size:13px;margin:7px 0 0;padding:0;border:0}.compact-history code{font-size:12px;overflow-wrap:anywhere}.compact-history button{font-size:13px;min-height:34px;padding:7px 10px;white-space:nowrap}.compact-history .history-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.compact-history .badge{font-size:12px}.compact-panel #improvements-status,.compact-panel #build-tools-result>.muted{font-size:13px;line-height:1.6}
@media(max-width:1200px){.compact-panel .project-header{align-items:flex-start;flex-direction:column;gap:12px}.compact-panel .project-header>.actions{justify-content:flex-start}.preparation-actions{max-width:300px}.compact-panel .overview-columns{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.compact-panel .project-header{margin-top:16px}.compact-panel .project-header h1{font-size:23px}.compact-panel #project-icon{width:42px;height:42px}.compact-panel .project-header>.actions{gap:6px}.compact-panel .tabs button{padding:11px 10px;font-size:13px}.compact-panel #workflow-bar{padding:10px}.compact-panel .workflow-links{gap:14px}.compact-panel .overview-columns{grid-template-columns:1fr}.preparation-head{flex-wrap:wrap}.preparation-head>div:first-of-type{flex-basis:calc(100% - 50px)}.preparation-actions{margin-left:44px;max-width:none;justify-content:flex-start}.composition-toolbar{flex-wrap:wrap;gap:8px}.composition-toolbar .compact-sort{margin-left:0;flex:1;justify-content:flex-end}.compact-panel .compact-sort select{max-width:135px}.compact-panel .selected>.panel-title{gap:6px}.compact-panel .selected>.panel-title h2{width:100%;font-size:19px}.compact-panel .selected>.panel-title #resolve{margin-right:auto;padding-left:0}.compact-panel .mod-details>summary>span:first-child{min-width:0}.compact-panel .mod-version{display:none}.compact-panel .release-version .release-controls{gap:8px}.compact-panel .release-version .release-controls button,.compact-panel .release-version .release-controls a{font-size:13px;padding:8px 10px}.compact-panel .compact-client-surface .release-version{padding:16px}.compact-panel #project-dialog{padding:16px}.project-settings-tabs{gap:0}.project-settings-tabs button{font-size:13px;padding:10px 8px}.compact-panel .compact-history thead{display:none}.compact-panel .compact-history tr{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--line);padding:10px 0}.compact-panel .compact-history td{padding:5px 0;border:0;width:auto}.compact-panel .compact-history td:first-child{grid-column:1/-1}.compact-history td:last-child{text-align:right}.compact-panel .compact-history .history-actions{gap:6px}.compact-panel .compact-history button{white-space:normal}.compact-panel #mod-catalog-dialog .catalog{padding:16px}.drawer-heading{padding:16px}}
