[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body { background: #fff; font-size: 13px; }
.app-shell { grid-template-columns: 208px minmax(0, 1fr); }
.main-area { background: #fff; }
.sidebar nav { overflow-y: auto; }
.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { margin-top: 13px; padding-top: 13px; border-top: 1px solid #343941; }
.nav-group-label { padding: 0 13px 6px; color: #7f8792; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.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; }
.overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.overview-metrics .metric { min-height: 78px; padding: 13px 15px; }
.overview-metrics .metric strong { margin-top: 5px; font-size: 18px; }
.overview-guide { min-height: 72px; }
.guide-brand-icon { overflow: hidden; background: transparent !important; }
.guide-brand-icon img { width: 38px; height: 38px; object-fit: contain; }
.guide-action { min-height: 48px; border: 0; border-left: 1px solid #dce2e8; border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.guide-action:hover { background: #fff5f7; }
.overview-section-heading { margin-top: 2px; }
.overview-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.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; }
.workspace-note { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; padding-bottom: 10px; color: var(--muted); font-size: 11px; }
.workspace-note svg { width: 14px; height: 14px; flex: 0 0 14px; }
.draft-state { display: grid; gap: 6px; margin-right: auto; }
.draft-state span { font-size: 12px; }
.draft-kicker { color: var(--muted); font-size: 10px !important; font-weight: 700; letter-spacing: .06em; }
.content-workspace-heading { padding-bottom: 14px; }
.release-scope-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.release-scope-card { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 4px 10px; align-content: start; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.release-scope-card.draft { border-color: #edb8c6; background: #fff8fa; box-shadow: inset 3px 0 0 var(--accent); }
.release-scope-card.stable { border-color: #cfe4dc; background: #f7fbf9; }
.release-scope-card.preview { border-color: #ccdfeb; background: #f7fbfd; }
.release-scope-card.unavailable { border-color: #e1e4e8; background: #fafafa; }
.release-scope-icon { width: 34px; height: 34px; display: grid; place-items: center; grid-row: 1 / span 2; border-radius: 7px; color: #69737f; background: #eef1f4; }
.release-scope-card.draft .release-scope-icon { color: var(--accent); background: var(--accent-soft); }
.release-scope-card.stable .release-scope-icon { color: #267760; background: #e5f4ee; }
.release-scope-card.preview .release-scope-icon { color: #28749b; background: #e8f3f8; }
.release-scope-card.unavailable .release-scope-icon { color: #7c848e; background: #eceff2; }
.release-scope-icon svg { width: 17px; height: 17px; }
.release-scope-card > div { min-width: 0; }
.release-scope-card strong, .release-scope-card p, .release-scope-kicker { display: block; }
.release-scope-kicker { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.release-scope-card strong { margin-top: 3px; overflow: hidden; color: #333941; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.release-scope-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.release-scope-state { grid-column: 1 / -1; width: max-content; margin-top: 7px; padding: 3px 6px; border-radius: 4px; color: #ad2a47; background: #ffeaf0; font-size: 10px; font-weight: 700; }
.release-scope-card .scope-action { grid-column: 1 / -1; width: 100%; min-height: 32px; margin-top: 7px; padding: 0 9px; font-size: 11px; }
.release-scope-card .scope-action:disabled { cursor: not-allowed; opacity: .55; }
.draft-editing-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-left: 3px solid #cfdae2; background: #f7f9fb; color: #56606b; font-size: 10px; line-height: 1.55; }
.draft-editing-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: #47758f; }
.draft-editing-note strong { color: #38414a; }
.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: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; }
.action-group, .tool-shelf-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.file-actions .self-made-action { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--accent-soft); font-weight: 700; }
.file-actions .self-made-action:hover { border-color: var(--accent); }
.file-actions .platform-action { color: #27749a; border-color: #b8d6e6; background: #edf7fb; font-weight: 700; }
.file-actions .platform-action:hover { border-color: #57a2c6; }
.batch-tools { min-height: 50px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); background: #fafbfc; }
.batch-tools > span { margin-right: auto; }
.batch-tools select { width: 132px; }
.tool-shelf { position: relative; }
.tool-shelf summary { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #d9dde2; border-radius: 6px; background: #f3f5f7; color: #343a42; cursor: pointer; list-style: none; font-weight: 600; }
.tool-shelf summary::-webkit-details-marker { display: none; }
.tool-shelf summary svg { width: 16px; height: 16px; }
.tool-shelf .summary-chevron { transition: transform 140ms ease; }
.tool-shelf[open] .summary-chevron { transform: rotate(180deg); }
.tool-shelf-actions { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; min-width: 205px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 10px 30px #18202b24; }
.tool-shelf-actions button { justify-content: flex-start; }
.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); gap: 18px; align-items: start; margin: 18px 0; }
.version-columns > * { min-width: 0; }
.settings-form { padding: 22px 0; }
.form-actions { padding-left: 0; padding-right: 0; margin-top: 6px; flex-wrap: wrap; }
.announcement-field { min-width: 0; margin: 2px 0 13px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; overflow: hidden; }
.announcement-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.announcement-field-heading strong, .announcement-field-heading span { display: block; }
.announcement-field-heading span { margin-top: 4px; font-size: 11px; }
.announcement-field-heading button { flex: 0 0 auto; }
.announcement-summary { min-height: 76px; padding: 14px; color: #4d5661; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.announcement-summary.empty { color: var(--muted); }
.announcement-summary.invalid { color: #ad2a47; background: #fff6f8; }
.announcement-modal { width: min(1120px, calc(100vw - 32px)); }
.announcement-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.announcement-dialog-heading h2 { margin-bottom: 6px; }
.announcement-dialog-heading p { margin: 0; }
.announcement-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: #f0f2f5; color: #626b76; font: 12px/1.3 Consolas, monospace; }
.announcement-count.error { color: #ad2a47; background: #ffe9ee; }
.announcement-mode-tabs { margin: 2px 0 14px; }
.announcement-workspace { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); gap: 16px; align-items: stretch; }
.announcement-workspace > section, .announcement-preview-panel { min-width: 0; }
.announcement-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 48px; padding: 7px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f8fa; }
.announcement-toolbar .icon-button { width: 32px; min-width: 32px; min-height: 32px; }
.announcement-block-label { margin: 0 5px 0 0 !important; }
.announcement-block-label select { width: 104px; min-height: 32px; padding: 5px 8px; background: #fff; }
.announcement-visual-editor { min-height: 350px; max-height: min(52vh,520px); overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 0 0 7px 7px; background: #fff; color: #333841; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; outline: none; }
.announcement-visual-editor:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #ffe3ea; }
.announcement-visual-editor:empty::before { content: attr(data-placeholder); color: #9aa1aa; pointer-events: none; }
.announcement-visual-editor h1, .announcement-visual-editor h2, .announcement-visual-editor h3, .announcement-visual-editor h4 { margin: .8em 0 .45em; line-height: 1.35; }
.announcement-visual-editor p { margin: .55em 0; }
.announcement-visual-editor img { display: block; max-width: 100%; height: auto; margin: 10px auto; border-radius: 5px; }
.announcement-visual-editor blockquote { margin: .8em 0; padding: 7px 11px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.announcement-source-label { margin: 0 !important; }
#notice-source-editor { min-height: 398px; max-height: min(58vh,568px); resize: vertical; font: 12px/1.65 Consolas, monospace; tab-size: 2; }
.announcement-preview-panel { display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 398px; border: 1px solid var(--line); border-radius: 7px; background: #f6f7f9; overflow: hidden; }
.announcement-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.announcement-preview-heading span { font-size: 11px; text-align: right; }
#notice-preview { display: block; width: 100%; height: 100%; min-height: 348px; border: 0; background: #fff; }
.announcement-insert-panel { display: grid; grid-template-columns: minmax(230px,1.5fr) minmax(180px,1fr) auto; gap: 10px; align-items: end; margin-top: 14px; padding: 13px; border: 1px solid #cbdde7; border-radius: 7px; background: #f8fbfd; }
.announcement-insert-panel > strong { grid-column: 1 / -1; }
.announcement-insert-panel label { margin: 0; }
.announcement-insert-panel .row-actions { padding-bottom: 1px; }
.announcement-editor-error { margin-top: 12px !important; }
.announcement-image-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; }
.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: 8px; 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; }
.pack-identity > div { min-width: 0; }
.pack-identity > div strong, .pack-identity > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-identity > div span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.overview-pack-item { padding: 15px; gap: 12px; }
.pack-channel-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.pack-channel { min-width: 0; display: grid; gap: 2px; padding: 10px 11px; border: 1px solid #d8e8e2; border-radius: 7px; background: #f5fbf8; }
.pack-channel.preview { border-color: #d7e5ee; background: #f6fafc; }
.pack-channel.unavailable { border-color: #e3e6ea; background: #f8f9fa; }
.pack-channel span { color: #587067; font-size: 10px; font-weight: 700; }
.pack-channel.preview span { color: #547386; }
.pack-channel strong { overflow: hidden; color: #285f50; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.pack-channel.preview strong { color: #315f78; }
.pack-channel.unavailable strong { color: #68717d; }
.pack-channel small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.official-release-card { margin-top: 18px; }
.official-release-card > .section-heading { border-bottom: 1px solid var(--line); }
.release-product { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.release-product img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.release-product strong, .release-product span { display: block; }
.release-product span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.official-state { display: inline-flex; align-items: center; gap: 5px; color: #267760; font-size: 11px; font-weight: 700; }
.official-state svg { width: 14px; height: 14px; }
.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); }
.self-made-note { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #525b66; font-size: 12px; line-height: 1.7; }
#self-made-form input[type="file"] { padding: 8px; }
.platform-modal { width: min(900px, calc(100vw - 32px)); }
.platform-context { margin: -6px 0 16px; color: var(--muted); font-size: 12px; }
.platform-search { display: grid; grid-template-columns: 160px minmax(220px,1fr) auto; gap: 10px; align-items: end; }
.platform-search label { margin-bottom: 0; }
.platform-search button { margin-bottom: 1px; }
.platform-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-top: 16px; }
.platform-columns section { min-width: 0; }
.platform-columns h3, .platform-preview h3 { margin: 0 0 10px; }
.platform-list { min-height: 142px; max-height: 250px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.platform-list > .muted { padding: 16px; margin: 0; }
.platform-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 62px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: inherit; text-align: left; }
.platform-entry:last-child { border-bottom: 0; }
.platform-entry:hover, .platform-entry.selected { background: #f3f8fb; }
.platform-entry strong, .platform-entry span { display: block; overflow-wrap: anywhere; }
.platform-entry span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.platform-entry > svg { width: 16px; height: 16px; color: var(--accent); }
.platform-preview { margin-top: 18px; padding: 16px; border: 1px solid #cbdde7; border-radius: 7px; background: #f8fbfd; }
.platform-preview > div:first-child { margin-bottom: 12px; }
.dependency-list { margin: 8px 0 14px; padding: 0; list-style: none; }
.dependency-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #dfe9ee; font-size: 12px; }
.dependency-warning { margin: 8px 0 14px; color: #7b5817; font-size: 12px; line-height: 1.6; }
.dependency-ack { margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid #dfe9ee; line-height: 1.5; }
.dependency-ack legend { padding-right: 10px; color: #59636d; font-size: 12px; font-weight: 700; }
.dependency-ack label { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; align-items: flex-start; margin: 8px 0 0; }
.dependency-ack input { width: 16px; min-height: 16px; margin-top: 3px; }
#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: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 18px 14px; }
.target-state { min-width: 0; display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #d8e8e2; border-radius: 7px; background: #f6fbf9; }
.target-state.preview { border-color: #d5e4ed; background: #f7fbfd; }
.target-state.unavailable { border-color: #e1e4e8; background: #fafafa; }
.target-state > span { display: flex; align-items: center; gap: 6px; color: #587067; font-size: 10px; font-weight: 700; }
.target-state.preview > span { color: #537488; }
.target-state > span svg { width: 13px; height: 13px; }
.target-state strong { overflow: hidden; color: #285f50; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.target-state.preview strong { color: #315f78; }
.target-state.unavailable strong { color: #68717d; }
.target-state small { color: var(--muted); font-size: 9px; }
.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; }

/* Information architecture and workflow guidance */
.page-guide { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0,1fr) minmax(190px,auto); gap: 14px; align-items: center; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #dce2e8; border-radius: 8px; background: #f8fafc; }
.page-guide .guide-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #eaf1f7; color: #287ca7; }
.page-guide .guide-icon svg { width: 19px; height: 19px; }
.guide-copy { min-width: 0; }
.guide-copy span, .guide-copy strong, .guide-copy p, .guide-next span, .guide-next strong { display: block; }
.guide-kicker, .section-kicker { color: #69737f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-copy strong { margin-top: 3px; color: #2d333b; font-size: 14px; }
.guide-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guide-next { min-width: 190px; display: grid; grid-template-columns: minmax(0,1fr) 17px; gap: 2px 8px; align-items: center; padding: 9px 12px; border-left: 1px solid #dce2e8; }
.guide-next span { grid-column: 1; color: var(--muted); font-size: 10px; }
.guide-next strong { grid-column: 1; color: #3e4650; font-size: 12px; }
.guide-next svg { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: #76808b; }
.workflow-guide { border-color: #eadbe2; background: linear-gradient(90deg,#fff8fa 0,#fff 62%); }
.workflow-guide .guide-icon { color: var(--accent); background: var(--accent-soft); }
.workflow-guide .guide-kicker { color: #b82d50; }
.system-guide { border-color: #d6e3ea; background: linear-gradient(90deg,#f6fbfd 0,#fff 62%); }
.account-guide { border-color: #d7e8e1; background: linear-gradient(90deg,#f5fbf8 0,#fff 62%); }
.account-guide .guide-icon { color: #218267; background: #eaf7f2; }
.release-hold { border-left-color: #e6c887; background: #fffaf0; }
.release-hold strong, .release-hold svg { color: #8a6318; }

.workspace-card { min-width: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.workspace-card > .section-heading { min-height: 60px; margin-top: 0; padding: 12px 16px; }
.workspace-card > .section-heading p { margin-top: 4px; }
.compact-heading { min-height: 54px !important; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card-heading h2, .card-heading p { margin: 0; }
.card-heading h2 { margin-top: 4px; font-size: 16px; }
.card-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.safe-state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; background: #eaf7f2; color: #267760; font-size: 11px; font-weight: 700; }
.safe-state svg { width: 14px; height: 14px; }
.content-add-card { overflow: visible; }
.content-add-card .section-heading { border-radius: 8px 8px 0 0; }
.content-add-card .progress-panel { border-radius: 0 0 8px 8px; }
.file-workspace { overflow: hidden; }
.file-workspace .content-toolbar { margin: 0; padding: 10px 16px 0; }
.file-workspace .table-wrap { border-top: 1px solid var(--line); }
.file-workspace .pagination { padding: 12px 16px; }

.release-draft-card, .distribution-form.workspace-card, .settings-columns .workspace-card, #password-form.workspace-card, #webcontrol-form.workspace-card { padding: 18px; }
.release-danger-zone { margin: 16px -18px -18px; padding: 14px 18px 0; border-top: 1px solid #efd0d6; background: #fff8f9; }
.release-danger-zone > div:first-child strong { display: flex; align-items: center; gap: 7px; color: #a62f47; font-size: 12px; }
.release-danger-zone > div:first-child strong svg { width: 16px; height: 16px; }
.release-danger-zone p { margin: 5px 0 0; color: #7b5b62; font-size: 11px; line-height: 1.55; }
.release-danger-zone .form-actions { margin-top: 10px; padding: 11px 0 14px; border-top: 0; }
.danger-action { background: #c92f4d !important; }
.danger-action:hover { background: #b32642 !important; }
.version-history-card { margin-top: 0; }
.version-history-card .card-heading { margin: 0; padding: 18px 18px 14px; }
.version-history-body { padding-top: 2px; }
.version-operations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0 0 18px; }
.operation-card { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 8px 12px; align-content: start; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.operation-icon { width: 36px; height: 36px; display: grid; place-items: center; grid-row: 1 / span 2; border-radius: 7px; background: #edf5fa; color: #287ca7; }
.operation-icon svg { width: 18px; height: 18px; }
.operation-copy h3, .operation-copy p { margin: 0; }
.operation-copy h3 { margin-top: 3px; font-size: 14px; }
.operation-copy p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.operation-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(130px,1fr) minmax(130px,auto) auto; gap: 10px; align-items: end; margin-top: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.operation-fields label { margin: 0; }
.operation-fields .checkbox-row { padding-bottom: 1px; }
.risk-card { border-color: #ead3a3; background: #fffdf8; }
.risk-card .section-kicker, .risk-card .operation-copy h3 { color: #8a6318; }
.risk-card .operation-icon { color: #996a0f; background: #fff2d8; }
.risk-action { border-color: #dab467 !important; color: #80560c !important; background: #fff7e8 !important; }
.risk-action:hover { background: #ffedca !important; }

.unpublished-notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 13px 15px; border: 1px solid #ead3a3; border-left: 4px solid #d5a02c; border-radius: 7px; background: #fffaf0; }
.unpublished-notice > svg { width: 20px; height: 20px; flex: 0 0 20px; color: #9b6e17; }
.unpublished-notice strong, .unpublished-notice p { display: block; margin: 0; }
.unpublished-notice strong { color: #765513; font-size: 13px; }
.unpublished-notice p { margin-top: 4px; color: #7d6a43; font-size: 11px; line-height: 1.55; }
.client-build-card .card-heading { margin: 0; padding: 16px; }
.client-build-card .build-toolbar { padding: 16px; }
.runtime-management { margin: 0; padding: 0 16px 12px; border-top: 1px solid var(--line); }
.runtime-management .build-toolbar { padding: 8px 0 4px; }

.storage-workspace { margin-top: 0; }
.storage-workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 15px 16px 0; border-bottom: 1px solid var(--line); }
.storage-workspace-heading h2, .storage-workspace-heading p { margin: 0; }
.storage-workspace-heading h2 { margin-top: 4px; font-size: 16px; }
.storage-workspace-heading p { margin: 4px 0 14px; color: var(--muted); font-size: 11px; }
.storage-workspace-heading .storage-tabs { margin: 0; border-bottom: 0; }
.storage-workspace #cos-panel > .section-heading { margin-top: 0; padding-left: 16px; padding-right: 16px; }
.storage-workspace .cos-steps, .storage-workspace .cos-form { margin-left: 16px; margin-right: 16px; }
.storage-workspace #traffic-form { padding-left: 16px; padding-right: 16px; }
.narrow-workspace { max-width: 780px; }
.settings-columns { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 18px; align-items: start; }
.settings-columns .workspace-card { margin-top: 0; }
#password-form.workspace-card { margin-top: 18px; }

.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dialog-heading h2, .dialog-heading p { margin: 0; }
.dialog-heading h2 { margin-top: 4px; }
.dialog-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.folder-upload-modal { width: min(620px,calc(100vw - 32px)); }
.folder-upload-help { margin: -3px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.folder-upload-help code { padding: 1px 4px; border-radius: 3px; background: #f0f2f5; color: #4d5661; font-family: Consolas,monospace; }
.folder-source-button { width: 100%; justify-content: center; }
.folder-upload-plan { margin-top: 14px; padding: 12px; border: 1px solid #dce2e8; border-radius: 7px; background: #f8fafc; }
.folder-upload-plan > span, .folder-upload-plan > strong { display: block; }
.folder-upload-plan > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.folder-upload-plan > strong { margin-top: 4px; color: #3e4650; font-size: 12px; }
#folder-upload-preview { max-height: 160px; margin: 10px 0 0; overflow: auto; padding: 10px; border: 1px solid #e1e5ea; border-radius: 5px; background: #fff; color: #58616c; font: 11px/1.65 Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-publish-modal { width: min(560px,calc(100vw - 32px)); }
.risk-state { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; background: #fff0f2; color: #aa2b45; font-size: 11px; font-weight: 700; }
.risk-state svg { width: 14px; height: 14px; }
.publish-review { margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; }
.publish-review > div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.publish-review > div:last-child { border-bottom: 0; }
.publish-review dt { color: var(--muted); font-size: 11px; }
.publish-review dd { margin: 0; color: #343a42; font: 12px/1.5 Consolas,monospace; overflow-wrap: anywhere; }
#client-publish-phrase { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #fff0f2; color: #9e2941; font: 11px/1.4 Consolas,monospace; }
#client-publish-confirm { font-family: Consolas,monospace; }

@media (max-width: 1060px) {
 .version-columns { grid-template-columns: minmax(0,1fr); }
 .version-history-card { margin-top: 0; }
 .version-operations, .settings-columns { grid-template-columns: minmax(0,1fr); }
 .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .overview-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .content-toolbar { flex-wrap: wrap; }
 .file-actions > span { margin-left: 0; }
 .announcement-workspace { grid-template-columns: minmax(0,1fr); }
 .announcement-preview-panel { min-height: 300px; }
 #notice-preview { min-height: 250px; }
}
@media (max-width: 820px) and (min-width: 561px) {
 .app-shell { grid-template-columns: 64px minmax(0,1fr); }
 .sidebar nav { padding-left: 7px; padding-right: 7px; }
 .nav-group-label { display: none; }
 .nav-group + .nav-group { margin-top: 9px; padding-top: 9px; }
 .nav-item { height: 48px; flex-direction: row; justify-content: center; padding: 0; }
 .nav-item span { display: none; }
 .nav-item svg { width: 19px; height: 19px; }
}
@media (max-width: 560px) {
 .app-shell { display: block; }
 .sidebar nav { display: flex; overflow-x: auto; overflow-y: hidden; }
 .nav-group { display: contents; }
 .nav-group-label { display: none; }
 .nav-group + .nav-group { margin: 0; padding: 0; border: 0; }
 .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%; }
 .workspace-note { width: 100%; margin-right: 0; padding: 0; }
 .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; }
 .action-group { width: 100%; }
 .file-actions button { padding: 0 9px; font-size: 12px; }
 .tool-shelf { width: 100%; }
 .tool-shelf summary { width: 100%; justify-content: center; }
 .tool-shelf-actions { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
 .batch-tools { flex-wrap: wrap; }
 .batch-tools > span { flex: 1; }
 .pack-list { grid-template-columns: minmax(0,1fr); }
 .release-scope-board, .overview-metrics { grid-template-columns: minmax(0,1fr); }
 .pack-channel-list, #target-list { grid-template-columns: minmax(0,1fr); }
 #target-list { margin-left: 12px; margin-right: 12px; }
 .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; }
 .platform-search, .platform-columns { grid-template-columns: minmax(0,1fr); }
 .platform-search button { width: 100%; justify-content: center; }
 .announcement-field-heading, .announcement-dialog-heading, .announcement-preview-heading { align-items: stretch; flex-direction: column; }
 .announcement-field-heading button { width: 100%; justify-content: center; }
 .announcement-toolbar { gap: 4px; }
 .announcement-block-label { flex: 1 1 100%; margin-right: 0 !important; }
 .announcement-block-label select { width: 100%; }
 .announcement-insert-panel { grid-template-columns: minmax(0,1fr); }
 .announcement-insert-panel > strong { grid-column: auto; }
 .announcement-insert-panel .row-actions { justify-content: flex-end; }
 .announcement-modal form { padding: 14px; }
 .page-guide { grid-template-columns: 38px minmax(0,1fr); padding: 12px; }
 .page-guide .guide-icon { width: 34px; height: 34px; }
 .guide-next { grid-column: 1 / -1; min-width: 0; padding: 9px 0 0; border-top: 1px solid #e2e6eb; border-left: 0; }
 .operation-fields { grid-template-columns: minmax(0,1fr); }
 .storage-workspace-heading { align-items: stretch; flex-direction: column; padding-top: 14px; }
 .storage-workspace-heading .storage-tabs { width: 100%; }
 .storage-workspace-heading .storage-tabs button { flex: 1; justify-content: center; }
 .storage-workspace .cos-steps, .storage-workspace .cos-form { margin-left: 12px; margin-right: 12px; }
 .dialog-heading { align-items: stretch; flex-direction: column; }
}
[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}
