[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; }
.schedule-login { width: 100%; justify-content: center; margin: 18px 0; }
.login-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin: 20px 0 12px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.identity-source { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; margin: 18px 0; border: 1px solid #cfe5dd; border-radius: 8px; background: #f2faf7; }
.identity-source strong, .identity-source p { display: block; margin: 0; }
.identity-source p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.identity-source .button-link { flex: 0 0 auto; }
.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; }
#account-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary { display: flex; gap: 14px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.account-summary h2 { margin: 0 0 8px; overflow-wrap: anywhere; }
.account-warning { padding: 12px 14px; border-left: 3px solid #d5a02c; background: #fff8e9; color: #795819; overflow-wrap: anywhere; }
#password-form, #repository-form { max-width: 560px; }
.member-toolbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 18px 0; }
.member-role-filter { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.member-role-filter select { width: 180px; }
#member-count { font-size: 12px; font-weight: 400; padding-left: 8px; }
.badge.admin-badge { color: #29749c; background: #edf5fa; }
.member-packs { min-width: 160px; max-width: 280px; white-space: normal; }
.member-packs .badge { margin: 2px 0; overflow-wrap: anywhere; }
.member-name { min-width: 150px; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
.pack-assignment { border: 0; border-top: 1px solid var(--line); margin: 16px 0; padding: 14px 0 0; min-width: 0; }
.pack-assignment legend { padding-right: 10px; color: #454b54; font-size: 12px; font-weight: 600; }
#member-pack-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 230px; overflow-y: auto; margin: 12px 0; gap: 4px 16px; }
#member-pack-list label { margin: 0; padding: 8px 0; min-width: 0; align-items: flex-start; }
#member-pack-list input { margin-top: 4px; accent-color: var(--accent); }
#member-pack-list span { overflow-wrap: anywhere; }
#assignment-count { font-size: 12px; }
.storage-tabs { margin-bottom: 4px; }
.cos-form { max-width: 920px; }
.cos-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); max-width: 920px; }
.cos-steps button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 64px; padding: 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.cos-steps button > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #edf0f3; color: #4b535d; }
.cos-steps button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.cos-steps button[aria-selected="true"] > span { background: var(--accent-soft); color: var(--accent); }
.cos-step-panel { border: 0; padding: 4px 0 12px; margin: 0; min-width: 0; }
.cos-step-panel legend { font-weight: 700; font-size: 15px; padding: 0 0 18px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 8px 0 18px; }
.guide-links a { display: inline-flex; align-items: center; gap: 5px; color: #287ca7; text-decoration: none; font-size: 12px; }
.guide-links a:hover { text-decoration: underline; }
.guide-links svg { width: 13px; height: 13px; flex: 0 0 13px; }
.policy-heading { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 10px 0; }
.policy-heading h3 { margin: 0; }
#cos-policy { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fb; font: 12px/1.7 Consolas, monospace; }
#cos-policy-scope { font-size: 12px; overflow-wrap: anywhere; }
.cos-summary { margin: 0 0 22px; }
.cos-summary > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #edf0f2; }
.cos-summary dt { color: var(--muted); font-size: 12px; }
.cos-summary dd { margin: 0; overflow-wrap: anywhere; }
.cos-verification { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cos-verification strong, .cos-verification span { display: block; }
.cos-verification span { margin-top: 5px; font-size: 12px; }
.cos-result { font-size: 12px; color: #506271; min-height: 30px; overflow-wrap: anywhere; padding: 10px 0; }
.cos-actions { justify-content: flex-start; }
.cos-actions button[type="submit"] { margin-left: auto; }
#traffic-form { max-width: 760px; }
#no-packs svg { width: 28px; height: 28px; }
#no-packs h2, #no-packs p { margin: 6px 0; text-align: center; }
#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; }
 #member-pack-list { grid-template-columns: minmax(0,1fr); }
 .member-toolbar .search { width: 100%; }
 .cos-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .cos-steps button { min-height: 48px; padding: 8px; }
 .cos-verification { flex-wrap: wrap; }
 .cos-actions { gap: 6px; }
 .cos-actions .secondary, .cos-actions .primary { padding: 0 10px; }
 .identity-source { align-items: stretch; flex-direction: column; }
 .identity-source .button-link { justify-content: center; }
}
[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}
