[hidden] { display: none !important; }
body { background: #fff; font-size: 13px; }
.app-shell { grid-template-columns: 208px minmax(0, 1fr); }
.main-area { background: #fff; }
.sidebar nav { overflow-y: auto; }
.topbar { min-height: 76px; background: #fff; backdrop-filter: none; }
.view { max-width: 1600px; padding-top: 22px; }
.section-heading { padding: 12px 0; min-height: 56px; margin-top: 14px; }
h2 { font-size: 16px; margin: 0 0 18px; }
.section-heading h2 { margin: 0; }
h3 { font-size: 14px; margin: 24px 0 12px; }
.metric { box-shadow: none; min-height: 88px; }
.metric strong { font-size: 20px; }
.workspace-heading { display: flex; gap: 20px; align-items: flex-end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workspace-heading label, .build-toolbar label { display: grid; gap: 6px; min-width: 180px; width: 280px; font-size: 12px; }
.draft-state { display: grid; gap: 6px; margin-right: auto; }
.draft-state span { font-size: 12px; }
.content-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; }
.segmented { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.segmented button { display: flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.segmented button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.segmented svg { width: 16px; height: 16px; }
.search { display: flex; align-items: center; gap: 8px; width: 260px; min-width: 100px; }
.search svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.file-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 0 12px; }
.file-actions > span { margin-left: auto; }
.file-actions select { width: 132px; }
.pagination { display: flex; gap: 12px; justify-content: flex-end; align-items: center; padding-top: 14px; }
.pagination > .muted { margin-right: auto; }
.file-table { table-layout: fixed; min-width: 660px; }
.file-table th:first-child, .file-table td:first-child { width: 40px; padding-right: 4px; }
.file-table th:nth-child(3) { width: 110px; }
.file-table th:nth-child(4) { width: 90px; }
.file-table th:last-child { width: 126px; }
.file-table .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table input[type="checkbox"] { width: 16px; min-height: 16px; }
.row-actions { display: flex; gap: 4px; }
.row-actions .icon-button { width: 30px; min-width: 30px; min-height: 30px; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 4px; color: #257863; background: #eaf6f1; font-size: 11px; }
.badge.neutral { background: #f0f2f5; color: #68717d; }
.badge.warning { background: #fff3e4; color: #956020; }
.badge.error { background: #ffe9ee; color: #ad2a47; }
.version-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.version-columns > .settings-form { padding: 22px 0; min-width: 0; }
.version-columns > .settings-form + .settings-form { padding-left: 28px; margin-left: 28px; border-left: 1px solid var(--line); }
.settings-form { padding: 22px 0; }
.form-actions { padding-left: 0; padding-right: 0; margin-top: 6px; flex-wrap: wrap; }
.build-toolbar { display: flex; gap: 14px; padding: 18px 0; align-items: flex-end; }
.build-toolbar label { width: 350px; }
.pack-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-top: 16px; }
.pack-item { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 10px; }
.pack-item strong { font-size: 16px; }
.pack-item p { margin: 0; color: var(--muted); min-height: 20px; overflow-wrap: anywhere; }
.pack-item footer { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-item .pack-identity { display: flex; gap: 12px; align-items: center; }
.pack-identity img { width: 36px; height: 36px; object-fit: contain; }
.login-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 18px; }
.modal { max-height: calc(100dvh - 36px); overflow-y: auto; }
.file-path { overflow-wrap: anywhere; color: var(--muted); }
#edit-text { font-family: Consolas, monospace; font-size: 13px; tab-size: 2; }
.table-wrap td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.error-detail { white-space: normal; overflow-wrap: anywhere; max-width: 420px; font-size: 12px; color: #ad2a47; }
#target-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.policy-option { grid-template-columns: 18px minmax(0,1fr); padding: 14px 0; }
.policy-option input { width: 16px; min-height: 16px; }
.policy-option .policy-order { margin-top: 5px; white-space: normal; overflow-wrap: anywhere; }
#game-mapping input { min-width: 140px; }
@media (max-width: 1060px) {
 .version-columns { grid-template-columns: minmax(0,1fr); }
 .version-columns > .settings-form + .settings-form { padding-left: 0; margin-left: 0; border-left: 0; border-top: 1px solid var(--line); }
 .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .content-toolbar { flex-wrap: wrap; }
 .file-actions > span { margin-left: 0; }
}
@media (max-width: 820px) { .app-shell { grid-template-columns: 78px minmax(0,1fr); } }
@media (max-width: 560px) {
 .app-shell { display: block; }
 .sidebar nav { display: flex; overflow-x: auto; overflow-y: hidden; }
 .nav-item { flex: 0 0 auto; min-width: 86px; }
 .topbar { flex-wrap: nowrap; align-items: center; }
 .top-actions { width: auto; flex-shrink: 0; }
 #account-name { display: none; }
 .workspace-heading { flex-wrap: wrap; gap: 12px; }
 .workspace-heading label { width: 100%; }
 .draft-state { flex: 1; }
 .segmented { width: 100%; }
 .segmented button { padding: 0 12px; }
 .search { width: 100%; }
 .build-toolbar { flex-wrap: wrap; }
 .build-toolbar label { width: 100%; }
 .file-actions { gap: 6px; }
 .file-actions button { padding: 0 9px; font-size: 12px; }
 .file-actions > span { flex: 1; }
 .pack-list { grid-template-columns: minmax(0,1fr); }
 .metrics { gap: 8px; }
 .metric { padding: 12px; }
 .metric strong { font-size: 18px; }
}
[role="alert"].form-error{color:#b42342;background:#fff0f3;border-left:3px solid #e73e62;padding:10px 12px;overflow-wrap:anywhere;margin:12px 0 0;font-size:13px}
