/* 控制台共用视觉规则：保持数据可读和操作紧凑，应用列表、详情、弹窗使用同一套尺寸。 */
:root {
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #28332e;
  background: #f5f5f1;
  font-synthesis: none;
  --navy: #242a2d;
  --blue: #376358;
  --text: #28332e;
  --muted: #6b756f;
  --border: #e0e4dd;
  --green: #2d7256;
  --red: #b04b45;
  --amber: #926923;
  --sidebar-width: 232px;
  --control-height: 38px;
  --radius: 9px;
  --shadow: 0 2px 3px #23332903, 0 8px 24px #23332904;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: background-color .16s, border-color .16s, box-shadow .16s; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 600; }
h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #659383; outline-offset: 3px;
}
input, textarea, select {
  color: var(--text); background: #fff; border: 1px solid #cbd3cb;
  border-radius: 7px; padding: 8px 11px; line-height: 20px;
  transition: border-color .16s, box-shadow .16s;
}
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { border-color: #a8b7ab; }
input:focus, textarea:focus, select:focus { border-color: #719483; box-shadow: 0 0 0 3px #3763580c; }
input, textarea { width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #89918b; }
input:disabled, select:disabled, textarea:disabled { background: #f2f4ef; color: #7f8981; }
textarea { resize: vertical; min-height: 76px; }
select { min-height: var(--control-height); max-width: 260px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
svg {
  width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.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;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px 14px;
  color: var(--blue); background: #fff; border-radius: 6px; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); font-size: 13px; }

/* 页面壳固定导航；数据表格自行横向滚动，不撑开整页。 */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 20;
  display: flex; flex-direction: column; color: #aebbb5; background: var(--navy);
}
.brand {
  min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 0 24px;
  color: #f3f6f2; font-size: 15px; font-weight: 600; letter-spacing: -.3px;
}
.brand-mark { display: grid; grid-template-columns: repeat(2,8px); gap: 3px; flex-shrink: 0; }
.brand-mark i { width: 8px; height: 8px; border-radius: 2px; background: #b0cfc0; }
.brand-mark i:last-child { background: #e0e9e1; }
.navigation { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px; min-height: 42px;
  padding: 11px 12px; border-radius: 7px; font-size: 13px; font-weight: 500;
  transition: color .16s, background-color .16s;
}
.nav-item:hover { color: #f2f6f2; background: #ffffff08; }
.nav-item[aria-current="page"] { color: #fff; background: #374440; box-shadow: inset 0 0 0 1px #ffffff06; }
.nav-item[aria-current="page"] svg { color: #c3d9ce; }
.nav-count {
  min-width: 22px; margin-left: auto; padding: 0 5px; border-radius: 4px;
  color: #bfcec5; background: #ffffff09; text-align: center; font-size: 12px;
}
.nav-count:empty { display: none; }
.sidebar-status {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 18px 23px;
  border-top: 1px solid #ffffff0d; color: #9eaca4; font-size: 12px;
}
.connection-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #96a49b; }
.connection-dot.online { background: #87b89e; }
.connection-dot.offline { background: #dab67d; }
.workspace { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 32px; border-bottom: 1px solid var(--border); background: #fff;
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-actions { flex-shrink: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; min-width: 0; color: #78837c; font-size: 13px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .separator { color: #adb6ae; }
.breadcrumbs .current {
  max-width: min(430px, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #45544b;
}
.sync-time { color: #7b877e; font-size: 12px; white-space: nowrap; }
.session-identity { display: grid; min-width: 0; max-width: 240px; line-height: 1.25; }
#session-user, .session-organization { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#session-user { color: #4c6153; font-weight: 500; }
.session-organization { color: #7b877e; font-size: 11px; }
.session-organization:empty { display: none; }
.topbar-actions > .link-button { color: #67766b; font-size: 12px; white-space: nowrap; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px;
  color: #6e7c72; background: transparent; font-size: 24px; line-height: 1;
}
.icon-button:hover { color: #355f50; background: #edf1eb; }
.icon-button svg { width: 18px; height: 18px; }
.platform-help-button {
  width: 28px; height: 28px; border-radius: 50%; color: #416b5a; background: #f7faf6;
  box-shadow: inset 0 0 0 1px #bdcfc1;
}
.platform-help-button:hover { color: #274d3e; background: #eaf2ec; box-shadow: inset 0 0 0 1px #8eaa95; }
.platform-help-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-guide-button {
  min-height: 28px; flex-shrink: 0; padding: 3px 8px; border: 0; border-radius: 6px;
  color: #476456; background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.topbar-guide-button:hover { color: #294f40; background: #edf2ec; }
.menu-toggle { display: none; font-size: 19px; }
.content { max-width: 1660px; min-width: 0; margin: 0 auto; padding: 30px 32px 48px; }
.page-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 40px; margin-bottom: 24px;
}
.heading-content { min-width: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--control-height); padding: 8px 14px; border: 1px solid transparent;
  border-radius: 7px; font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 1px 2px #203b2912; }
.primary:hover:not(:disabled) { background: #294e44; border-color: #294e44; }
.secondary { color: #485b4e; background: #fff; border-color: #d2d9d0; }
.secondary:hover:not(:disabled) { background: #f4f6f0; border-color: #adbcaf; }
.button.secondary.danger { color: var(--red); }
.button.secondary.danger:hover:not(:disabled) { background: #fff4ef; border-color: #d5a7a0; }
.button.destructive { color: #fff; background: var(--red); border-color: var(--red); }
.button.destructive:hover:not(:disabled) { background: #913c37; border-color: #913c37; }
.button.small { min-height: 30px; padding: 4px 9px; font-size: 13px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.text-link, .link-button { color: #376a55; }
.text-link:hover, .link-button:hover { text-decoration: underline; }
.link-button { padding: 0; border: 0; background: none; font: inherit; text-align: left; line-height: inherit; }
.link-button:disabled { opacity: .48; }
.button[aria-busy="true"]::before, .loading-state::before, .check-report-stage::before {
  content: ""; width: 13px; height: 13px; flex-shrink: 0; border: 1.5px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: loading-turn .8s linear infinite;
}
@keyframes loading-turn { to { transform: rotate(360deg); } }

/* 同一表格规则覆盖应用、候选、发布与反馈；次要信息保持至少 12px。 */
.table-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.app-catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.department-tabs { display: flex; gap: 10px; padding: 16px 20px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.department-tab { min-height: 38px; flex: 0 0 auto; padding: 7px 16px; border: 1px solid #dbe3d7; border-radius: 7px; color: #53695a; background: #fff; font: inherit; font-size: 13px; }
.department-tab[aria-selected="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.department-tab:hover:not([aria-selected="true"]) { border-color: #a8bda9; background: #f7faf5; }
.app-card-toolbar { border-bottom: 0; background: #fbfcf9; }
.app-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 20px 20px; }
.application-card { display: flex; min-width: 0; min-height: 320px; flex-direction: column; padding: 18px; border: 1px solid #e0e6dc; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.application-card:hover { border-color: #bdcdbc; box-shadow: 0 10px 26px #23332910; transform: translateY(-1px); }
.application-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.application-category { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 8px; border-radius: 999px; color: #335d4d; background: #eaf4ee; font-size: 12px; font-weight: 600; }
.application-category.documentation { color: #6d5731; background: #f7f0df; }
.application-card-title { margin-top: 18px; font-size: 18px; line-height: 1.4; }
.application-card-title a { color: #263e32; }
.application-card-title a:hover { color: var(--blue); }
.application-card-purpose { display: -webkit-box; min-height: 48px; margin-top: 8px; overflow: hidden; color: #66786b; font-size: 13px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.application-card-metadata { display: grid; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0e9; font-size: 12px; }
.application-card-metadata > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.application-card-metadata dt { color: #89958c; }
.application-card-metadata dd { min-width: 0; overflow: hidden; color: #53695a; text-overflow: ellipsis; white-space: nowrap; }
.application-data-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.application-data-chip { padding: 3px 7px; border: 1px solid #dce5d9; border-radius: 5px; color: #647969; background: #f8faf6; font-size: 11px; }
.application-data-chip.muted-chip { color: #8a958d; }
.application-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid #edf0e9; }
.application-card-owner { min-width: 0; overflow: hidden; color: #8a958d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.app-card-empty { grid-column: 1 / -1; display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; gap: 15px; color: #718176; }
.table-toolbar {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.toolbar-end { margin-left: auto; }
.search-field { position: relative; width: 320px; max-width: 100%; min-width: 150px; flex-shrink: 1; }
.search-field svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: #7c8a7f; pointer-events: none; }
.search-field input { height: var(--control-height); padding-left: 34px; font-size: 13px; }
.table-toolbar select { font-size: 13px; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: auto; font-size: 13px; }
.data-table th {
  padding: 12px 18px; border-bottom: 1px solid var(--border); color: #65746a;
  background: #f8f9f5; text-align: left; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.data-table td { height: 58px; padding: 14px 18px; border-bottom: 1px solid #edf0e9; vertical-align: middle; line-height: 22px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbf8; }
.data-table .actions-column { width: 140px; min-width: 120px; }
.row-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.apps-table { min-width: 860px; }
.app-name-cell { min-width: 180px; max-width: 280px; }
.app-name-cell a, .app-name-cell .link-button {
  display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #344d3e; font-weight: 500;
}
.app-name-cell a:hover { color: var(--blue); }
.cell-text { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-secondary { display: block; margin-top: 2px; color: #7c897e; font-size: 12px; }
.purpose-cell { min-width: 140px; max-width: 320px; color: #687a6d; }
.owner-cell { min-width: 98px; max-width: 160px; color: #55695b; }
.time-cell { color: #6e7d72; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.version-cell { min-width: 128px; white-space: nowrap; }
.source-name { display: block; max-width: 220px; overflow: hidden; color: #4e6d58; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.note-cell { min-width: 170px; max-width: 440px; color: #546a5b; }
.note-text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px;
  padding: 12px 20px; border-top: 1px solid var(--border); color: #6d7d71; font-size: 12px;
}
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination .button { width: 30px; min-height: 30px; padding: 0; font-size: 20px; }
.pagination > span { min-width: 42px; color: #677c6d; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.empty-cell { height: auto !important; padding: 60px 24px !important; color: #77877b !important; text-align: center !important; }
.empty-cell > p { font-size: 14px; }
.empty-cell p { margin-bottom: 12px; }
.empty-cell p:last-child { margin-bottom: 0; }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid transparent; border-radius: 5px;
  color: #68796d; background: #eff2ec; font-size: 12px; line-height: 20px; font-weight: 400; white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status.success { color: var(--green); background: #eaf4ed; border-color: #dbece0; }
.status.info { color: #416c9b; background: #edf3fa; border-color: #e0e9f2; }
.status.warning { color: var(--amber); background: #fbf3e3; border-color: #f2e7ce; }
.status.danger { color: var(--red); background: #fcf0ec; border-color: #f4e0d9; }
.current-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px; color: #456d58; background: #edf4ee; font-size: 12px; font-weight: 400; }

/* 应用内部各标签页沿用表格壳，不重复建立一套卡片或页面标题。 */
.app-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.app-heading .heading-content { flex: 1 1 320px; max-width: 100%; }
.app-heading .button-row { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; margin-left: auto; padding-top: 1px; }
.app-heading h1 { overflow-wrap: anywhere; }
.app-summary { max-width: 800px; margin-top: 8px; color: #718176; font-size: 13px; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 28px; margin-bottom: 18px; padding: 0 1px; border-bottom: 1px solid #dce4da; overflow-x: auto; }
.tabs > a { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 1px 12px; color: #657d6d; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tabs > a[aria-selected="true"] { color: #376358; font-weight: 500; }
.tabs > a[aria-selected="true"]::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); }
.tab-count { min-width: 20px; padding: 0 5px; border-radius: 4px; color: #748779; background: #eaf0e6; text-align: center; font-size: 12px; line-height: 19px; }
.tabs > a[aria-selected="true"] .tab-count { color: #4f755c; background: #e5eee2; }
.feedback-table { min-width: 720px; }
.feedback-table td:first-child { width: 52%; min-width: 250px; max-width: 650px; vertical-align: top; }
.feedback-message { color: #506857; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.internal-feedback-details { margin-top: 6px; font-size: 12px; }
.internal-feedback-details > summary { color: #4f755c; cursor: pointer; }
.internal-feedback-details > .feedback-message { margin-top: 10px; }
/* 共享库沿用业务列表组件，只呈现可下载成果及其来源。 */
.skills-table { min-width: 760px; }
#skills-download-error:not(:empty) { margin: 0 0 14px; }
.skills-table td { vertical-align: top; }
.skills-table .actions-column { width: 184px; min-width: 184px; }
.skills-table th:last-child, .skills-table td:last-child:not([colspan]) { position: sticky; right: 0; z-index: 1; border-left: 1px solid var(--border); background: #fff; box-shadow: -3px 0 5px #242a2d06; }
.skills-table th:last-child { z-index: 2; background: #f8f9f5; }
.skills-table tbody tr:hover td:last-child:not([colspan]) { background: #fafbf8; }
.skill-name-cell { width: 28%; min-width: 220px; max-width: 380px; }
.skill-title { color: #435e4d; font-weight: 500; overflow-wrap: anywhere; }
.skill-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.skill-app-cell { min-width: 140px; max-width: 230px; overflow-wrap: anywhere; }
.settings-card { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.settings-card > h2 { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 15px; }
.settings-list { padding: 3px 20px; }
.settings-list > div { display: flex; gap: 28px; padding: 14px 0; border-bottom: 1px solid #edf1e8; }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { width: 122px; flex-shrink: 0; color: #6e8272; font-size: 13px; }
.settings-list dd { min-width: 0; color: #47614f; font-size: 13px; overflow-wrap: anywhere; }
.settings-card .data-table { min-width: 590px; }
.settings-form { padding: 18px 20px 20px; }
.settings-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.settings-form-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; color: #546c5b; font-size: 13px; }
.settings-form-summary .status { margin-left: 8px; }
.settings-form-summary .field-help { margin: 0; }
.settings-form .report-model-field { max-width: 400px; }
.settings-form textarea { min-height: 130px; max-height: 540px; line-height: 1.7; }
.settings-form #experience-product-description { min-height: 112px; }
.settings-form #experience-operation-instructions { min-height: 148px; }
.settings-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.settings-error:not(:empty) { padding: 0 20px 14px; }
.plain-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; font-size: 14px; font-weight: 400; }
.checkbox-field input { flex-shrink: 0; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--blue); }
.checkbox-field:has(input:disabled) { color: var(--muted); }

/* 弹窗只滚动内容，标题和操作始终可见；原生 dialog 负责焦点约束。 */
.notice { margin-bottom: 18px; padding: 11px 13px; border: 1px solid #dce6d8; border-radius: 6px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.notice.danger { color: #a34239; background: #fff4ef; border-color: #edcec4; }
.notice.neutral { color: #647a68; background: #f3f6f2; }
.modal, .drawer { padding: 0; color: var(--text); background: #fff; border: 1px solid #d8e2d4; box-shadow: 0 18px 64px #18251c26, 0 4px 12px #18251c0a; }
dialog::backdrop { background: #1b242773; }
body:has(dialog[open]) { overflow: hidden; }
.modal { width: 500px; max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); border-radius: 12px; overflow: hidden; }
.app-create-modal { width: 720px; }
.modal[open] { display: flex; }
.modal > form { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; max-height: inherit; }
.skill-history-modal, .skill-preview-modal { flex-direction: column; }
.skill-history-modal { width: 820px; }
.skill-history-modal .dialog-heading > div, .skill-preview-modal .dialog-heading > div { min-width: 0; }
.skill-history-modal h2, .skill-preview-modal h2 { overflow-wrap: anywhere; }
.skill-history-modal .dialog-body { flex: 1; }
.skill-history-modal .data-table { min-width: 620px; }
.skill-history-modal .icon-button, .skill-preview-modal .icon-button { flex-shrink: 0; }
.skill-preview-modal { width: 900px; height: min(86dvh, 900px); }
.skill-preview-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#skill-preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
#skill-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; background: #fff; }
#skill-preview-error { margin: 24px; }
.skill-preview-modal .dialog-footer .form-error { flex-basis: 100%; margin: 0; }
.skill-preview-note { flex: 1; min-width: 160px; margin: 0; align-self: center; }
.dialog-heading, .drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dialog-heading h2 { font-size: 16px; }
.dialog-body { padding: 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.form-field { margin-bottom: 18px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label { color: #425d49; }
.form-field input, .form-field textarea, .form-field select { width: 100%; max-width: none; font-size: 14px; }
.choice-fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 9px; color: #425d49; font-size: 13px; }
.choice-fieldset legend small { margin-left: 7px; color: #829086; font-weight: 400; }
.choice-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { display: flex; min-width: 0; gap: 10px; padding: 12px; border: 1px solid #dbe3d7; border-radius: 8px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px #47745d18; background: #f8fbf8; }
.choice-card:has(input:disabled) { cursor: not-allowed; opacity: .58; background: #f5f7f4; }
.choice-card input { width: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.choice-card span { min-width: 0; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: #345342; font-size: 13px; }
.choice-card small { margin-top: 4px; color: #75867a; font-size: 11px; line-height: 1.55; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 9px; border: 1px solid #e0e6dc; border-radius: 6px; color: #53695a; font-size: 12px; }
.checkbox-grid label:has(input:checked) { border-color: #9db9a7; background: #f5faf6; }
.checkbox-grid input { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--blue); }
.app-metadata-modal { width: 680px; }
.metadata-origin { margin: 0 0 20px; padding: 10px 14px; border: 1px solid #e3e9e0; border-radius: 8px; background: #f8faf7; }
.military-process-grid { display: grid; gap: 8px; }
.military-process-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(190px, 1.2fr); gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #e0e6dc; border-radius: 7px; }
.military-process-row:has(input:checked) { border-color: #9db9a7; background: #f5faf6; }
.military-process-row > label { display: flex; gap: 8px; align-items: center; min-width: 0; color: #425d49; font-size: 13px; }
.military-process-row input { accent-color: var(--blue); }
.military-process-row select { min-width: 0; }
.choice-fieldset:disabled { opacity: .68; }
.required { margin-left: 2px; color: #b34d44; font-weight: 400; }
.optional-label { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.dialog-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--border); background: #fcfdf9; flex-shrink: 0; }
.experience-help-modal { width: 820px; }
.experience-help-modal .dialog-heading > div { min-width: 0; }
.experience-help-modal .dialog-heading .field-help { margin-top: 3px; }
.experience-help-body { display: grid; gap: 24px; }
.experience-help-body section { min-width: 0; padding: 18px 20px; border: 1px solid #e1e8df; border-radius: 10px; background: #fafbf8; }
.experience-help-body h3 { margin-bottom: 9px; color: #315442; font-size: 15px; }
.experience-copy { color: #4e6155; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.experience-copy:empty::before { content: "暂未填写"; color: var(--muted); }
.experience-workpack-card { background: #f5faf6 !important; border-color: #cbdccc !important; }
.experience-workpack-heading, .agent-guide-prompt-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.manual-eyebrow { margin-bottom: 3px; color: #75877b; font-size: 12px; }
.manual-version-badge { flex-shrink: 0; padding: 3px 8px; border: 1px solid #c8d9ca; border-radius: 999px; color: #4d6959; background: #fff; font-size: 11px; }
.workpack-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 15px; }
.workpack-url-row code { min-width: 0; padding: 8px 10px; border: 1px solid #d6e0d5; border-radius: 6px; color: #385646; background: #fff; font: 12px/1.6 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.workpack-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.agent-guide-modal { width: 1040px; height: min(92dvh, 980px); }
.agent-guide-modal .dialog-heading > div { min-width: 0; }
.agent-guide-body { display: grid; gap: 22px; background: #f7f8f4; }
.agent-guide-intro { padding: 20px; border: 1px solid #cadbcb; border-radius: 10px; background: #fff; }
.agent-guide-intro h3 { margin-bottom: 13px; color: #2e523f; font-size: 17px; }
.agent-guide-zip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.agent-guide-zip-grid article { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #dfe7dc; border-radius: 8px; background: #f9fbf8; }
.agent-guide-zip-grid strong { color: #315342; }
.agent-guide-zip-grid span { color: #64776a; font-size: 12px; line-height: 1.7; }
.agent-guide-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.agent-guide-step { min-width: 0; padding: 22px; border: 1px solid #dde4da; border-radius: 11px; background: #fff; box-shadow: 0 6px 20px #253a2d08; }
.agent-guide-step-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; }
.agent-guide-step-heading > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 700; }
.agent-guide-step-heading h3 { margin: 2px 0 6px; color: #2c4c3a; font-size: 17px; }
.agent-guide-step-heading p { color: #586c5f; line-height: 1.85; }
.agent-guide-step code, .agent-guide-prompt-card code { color: #355c48; font-family: ui-monospace, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.agent-guide-step figure { margin: 18px 0 0 47px; overflow: hidden; border: 1px solid #dce3d9; border-radius: 9px; background: #f4f6f2; }
.agent-guide-step img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #eef2ec; }
.agent-guide-step figcaption { padding: 9px 12px; color: #6f7f74; border-top: 1px solid #e0e6de; background: #fafbf8; font-size: 11px; line-height: 1.6; }
.agent-guide-prompt-card { margin: 18px 0 0 47px; padding: 16px; border: 1px solid #d6e1d6; border-radius: 9px; background: #f7faf6; }
.agent-guide-prompt-heading { align-items: center; margin-bottom: 10px; color: #355442; }
#external-agent-prompt { max-height: 260px; margin: 0; padding: 13px; overflow: auto; border: 1px solid #d5ded4; border-radius: 7px; color: #354b3e; background: #fff; font: 12px/1.75 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.agent-guide-branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.agent-guide-branch-grid article { padding: 11px; border: 1px solid #dfe7dd; border-radius: 7px; background: #fff; }
.agent-guide-branch-grid strong { color: #355542; font-size: 12px; }
.agent-guide-branch-grid p { margin-top: 5px; color: #65776b; font-size: 11px; line-height: 1.65; }
.agent-guide-note { margin: 16px 0 0 47px; padding: 12px 14px; border-left: 3px solid #70957e; color: #506759; background: #f3f8f3; line-height: 1.75; }
.onboarding-modal { width: 620px; }
.onboarding-modal .dialog-heading > div { min-width: 0; }
.onboarding-eyebrow { margin-bottom: 2px; color: #74847a; font-size: 12px; }
.onboarding-body { text-align: center; }
.onboarding-progress { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 360px; margin: 0 auto 26px; padding: 0; list-style: none; }
.onboarding-progress li { position: relative; display: flex; justify-content: center; }
.onboarding-progress li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 1px; background: #dbe4db; }
.onboarding-progress span { position: relative; z-index: 1; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #cad7cb; border-radius: 50%; color: #718178; background: #fff; font-size: 12px; }
.onboarding-progress li.complete span, .onboarding-progress li.current span { color: #fff; border-color: var(--blue); background: var(--blue); }
.onboarding-progress li.complete:not(:first-child)::before, .onboarding-progress li.current:not(:first-child)::before { background: #7da28d; }
.onboarding-illustration { display: grid; width: 74px; height: 74px; margin: 0 auto 18px; place-items: center; border-radius: 22px; color: #315f4c; background: #eaf3ec; box-shadow: inset 0 0 0 1px #d3e2d4; }
.onboarding-illustration span { font-size: 30px; line-height: 1; }
.onboarding-body h3 { color: #2d4739; font-size: 19px; }
.onboarding-step-content { max-width: 470px; margin: 10px auto 0; color: #5b6b61; line-height: 1.8; }
.onboarding-step-content p + p { margin-top: 8px; }
.onboarding-actions { justify-content: space-between; }
.onboarding-actions #onboarding-next { margin-left: auto; }
.onboarding-preference-modal { width: 520px; }
.onboarding-preference-modal .dialog-body { color: #526358; line-height: 1.8; }
.dialog-context { margin-bottom: 18px; color: #405f4a; font-size: 14px; overflow-wrap: anywhere; }
.field-help { margin-top: 7px; color: #758879; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.form-error { margin-top: 12px; color: #ad493e; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.small-link { display: inline-block; margin-top: 13px; font-size: 13px; }
.file-input { padding: 9px; background: #fafbf6; }
.file-input::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 1px solid #cbd9c5; border-radius: 4px; color: #486651; background: #fff; font: inherit; cursor: pointer; }
.upload-summary { margin-top: 16px; color: #526a59; font-size: 13px; line-height: 1.8; }
.package-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; }
.package-details summary { color: #657a6b; cursor: pointer; }
.package-details .field-help { margin-top: 10px; }
.compact-definition { font-size: 13px; }
.compact-definition > div { display: flex; gap: 18px; padding: 7px 0; }
.compact-definition dt { min-width: 88px; color: #728774; flex-shrink: 0; }
.compact-definition dd { min-width: 0; color: #425f49; white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-definition.stacked > div { display: block; }
.compact-definition.stacked dd { margin-top: 5px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* 业务抽屉只保留结论与操作，完整对外报告在复制受限时按需打开。 */
.drawer { position: fixed; inset: 0 0 0 auto; width: 560px; max-width: calc(100% - 32px); height: 100dvh; max-height: 100dvh; margin: 0; border-width: 0 0 0 1px; border-radius: 0; overflow: hidden; }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-heading { align-items: flex-start; padding: 24px; }
.drawer-heading > div { min-width: 0; }
.drawer-heading h2 { font-size: 16px; overflow-wrap: anywhere; }
.drawer-eyebrow { margin-bottom: 4px; color: #778d7a; font-size: 12px; }
.drawer-body { flex: 1; min-height: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.drawer-section { margin-top: 23px; }
.drawer-section h3 { padding-bottom: 9px; margin-bottom: 3px; color: #3f5d47; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h3 { padding-bottom: 0; margin-bottom: 0; }
.check-report-section { padding: 18px; border: 1px solid #e1e7dc; border-radius: 10px; background: #f8faf5; }
.check-report-section h3 { margin-bottom: 10px; }
.check-report-result { color: #3c5243; font-size: 14px; line-height: 1.8; }
.check-report-stage { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #486b5a; font-size: 13px; }
.report-actions { margin-top: 16px; flex-wrap: wrap; }
.report-preview-modal { width: 800px; height: min(86dvh, 900px); }
.report-preview-modal .dialog-heading > div { min-width: 0; }
.report-preview-modal .dialog-heading .field-help { margin-top: 4px; }
.report-preview-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#report-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; background: #fff; font-size: 13px; }
#report-preview-error { margin: 24px; }
#report-preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
/* 报告在空 sandbox 的 Blob 文档内复用同源样式，保持严格 CSP 下的阅读排版。 */
body.report-document { min-width: 0; background: #fff; color: #374c3e; font-size: 14px; line-height: 1.85; }
.report-document article { max-width: 900px; margin: 0 auto; padding: 28px 32px 40px; overflow-wrap: anywhere; }
.report-document h1 { margin: 0 0 20px; color: #2b4234; font-size: 23px; line-height: 1.5; }
.report-document h2 { margin: 28px 0 12px; padding-bottom: 9px; border-bottom: 1px solid #e3e9df; font-size: 17px; }
.report-document h3 { margin: 22px 0 10px; font-size: 15px; }
.report-document p { margin: 12px 0; }
.report-document ul, .report-document ol { margin: 12px 0; padding-left: 24px; }
.report-document li { margin: 6px 0; }
.report-document code { padding: 2px 5px; border-radius: 4px; background: #f0f3ed; font: 12px/1.75 Consolas, monospace; }
.report-document pre { padding: 14px 16px; border: 1px solid #e3e9df; border-radius: 7px; background: #f7f9f3; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-document pre code { padding: 0; background: none; }
.report-document table { width: 100%; margin: 16px 0; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.report-document th, .report-document td { padding: 8px 10px; border: 1px solid #e3e9df; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.report-document th { background: #f7f9f3; }
.report-document blockquote { margin: 16px 0; padding: 2px 16px; border-left: 3px solid #cddccd; color: #6b7c6d; }
.report-document a { color: #376a55; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .report-document article { padding: 20px; }
  .report-document h1 { font-size: 20px; }
  .report-document th, .report-document td { padding: 6px; }
}
.report-copy-modal { width: 620px; }
.report-copy-modal .dialog-context { margin-bottom: 10px; font-size: 13px; }
#report-copy-text { height: 260px; min-height: 140px; max-height: 42dvh; margin-top: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.7; resize: vertical; white-space: pre; }
.drawer-footer { padding: 18px 24px 22px; border-top: 1px solid var(--border); background: #fcfdf9; flex-shrink: 0; }
.drawer-footer > .field-help { margin: 0; }
.drawer-footer > .field-help:not(:empty) { margin-bottom: 10px; }
.drawer-footer:has(form[hidden]):has(button[hidden]) { padding-bottom: 14px; }
.drawer-footer label { color: #4d6b54; font-size: 13px; }
.drawer-footer textarea { min-height: 62px; max-height: 150px; font-size: 14px; }
.drawer-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.drawer-submit-row .field-help { margin-top: 0; }
.toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width) / 2); z-index: 50; max-width: calc(100% - 36px); padding: 12px 18px; border: 1px solid #ffffff12; border-radius: 8px; color: #fff; background: #304a3b; box-shadow: 0 8px 24px #293a2b26; font-size: 13px; transform: translateX(-50%); overflow-wrap: anywhere; }
.sidebar-backdrop { display: none; }

@media (min-width: 1500px) {
  .apps-table th:first-child { width: 23%; }
  .apps-table th:nth-child(3) { width: 27%; }
}
@media (max-width: 1180px) {
  .app-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 20px; }
  .content { padding: 22px 20px 36px; }
  .app-summary { max-width: 540px; }
  .data-table th, .data-table td { padding-right: 14px; padding-left: 14px; }
  .search-field { width: 280px; }
}
@media (min-width: 801px) and (max-width: 1200px) {
  /* 中等桌面优先保留操作与版本信息，用途仍可在应用详情查看；不靠缩小文字容纳整表。 */
  .apps-table { min-width: 0; table-layout: fixed; }
  .apps-table th, .apps-table td { padding-right: 10px; padding-left: 10px; }
  .apps-table th:nth-child(3), .apps-table td:nth-child(3) { display: none; }
  .apps-table th:first-child { width: auto; }
  .apps-table th:nth-child(2) { width: 80px; }
  .apps-table th:nth-child(4) { width: 94px; }
  .apps-table th:nth-child(5) { width: 136px; }
  .apps-table th:nth-child(6) { width: 108px; min-width: 0; }
  .apps-table .app-name-cell, .apps-table .owner-cell, .apps-table .version-cell { min-width: 0; max-width: none; }
  .apps-table .app-name-cell a { max-width: 100%; }
  .apps-table .row-actions { gap: 10px; }
}
@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .15s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 19; display: block; padding: 0; border: 0; border-radius: 0; background: #1b242773; }
  body:has(.sidebar.open) { overflow: hidden; }
  .workspace { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .topbar-left { gap: 8px; }
  .breadcrumbs { gap: 8px; }
  .breadcrumbs .current { max-width: 48vw; }
  .sync-time { display: none; }
  .content { padding: 20px 14px 32px; }
  .page-heading { gap: 12px; margin-bottom: 17px; }
  h1 { font-size: 21px; }
  .table-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; min-height: 60px; }
  .search-field { flex: 1 1 190px; width: auto; }
  .table-toolbar select { max-width: 190px; }
  .table-toolbar .toolbar-end { margin-left: auto; }
  .department-tabs { padding: 12px; }
  .app-card-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 12px 14px; }
  .application-card { min-height: 0; }
  .table-footer { padding: 10px 13px; }
  /* 小屏允许横向查看完整表格，操作列固定右侧，避免用户滚动寻找管理和打开入口。 */
  .data-table:has(.actions-column) th:last-child, .data-table:has(.actions-column) td:last-child:not([colspan]) {
    position: sticky; right: 0; z-index: 1; border-left: 1px solid var(--border);
    background: #fff; box-shadow: -3px 0 5px #242a2d06;
  }
  .data-table:has(.actions-column) th:last-child { z-index: 2; background: #f8f9f5; }
  .data-table:has(.actions-column) tbody tr:hover td:last-child:not([colspan]) { background: #fafbf8; }
  .app-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
  .app-heading .heading-content { flex: initial; }
  .app-heading .button-row { align-self: flex-end; flex-wrap: wrap; justify-content: flex-end; padding-top: 0; max-width: 100%; }
  .app-summary { max-width: calc(100vw - 28px); }
  .tabs { gap: 24px; margin-bottom: 16px; }
  .settings-list { padding: 3px 16px; }
  .settings-card > h2 { padding: 15px 16px; }
  .settings-list > div { gap: 18px; }
  .settings-list dt { width: 96px; }
  .drawer { max-width: 100%; }
  .modal { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .agent-guide-modal { height: calc(100dvh - 24px); }
  .agent-guide-branch-grid { grid-template-columns: 1fr; }
  .toast { left: 50%; bottom: 18px; width: max-content; }
}
@media (max-width: 420px) {
  .breadcrumbs .current { max-width: 45vw; }
  .topbar-guide-button { padding-right: 5px; padding-left: 5px; }
  .page-heading > .button { padding-right: 10px; padding-left: 10px; }
  .table-toolbar .search-field { flex-basis: 100%; }
  .table-toolbar select { flex: 1; max-width: 100%; }
  .dialog-heading, .drawer-heading { padding: 15px 16px; }
  .dialog-body, .drawer-body { padding: 17px 16px; }
  .dialog-footer, .drawer-footer { padding: 13px 16px 16px; }
  .experience-help-body section { padding: 15px; }
  .experience-workpack-heading, .agent-guide-prompt-heading { align-items: stretch; flex-direction: column; }
  .manual-version-badge { align-self: flex-start; }
  .workpack-url-row { grid-template-columns: 1fr; }
  .workpack-url-row .button, .workpack-actions .button, .agent-guide-modal .dialog-footer .button { width: 100%; }
  .agent-guide-body { gap: 14px; }
  .agent-guide-intro, .agent-guide-step { padding: 15px; }
  .agent-guide-zip-grid { grid-template-columns: 1fr; }
  .agent-guide-step-heading { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .agent-guide-step-heading > span { width: 30px; height: 30px; }
  .agent-guide-step-heading h3 { font-size: 16px; }
  .agent-guide-step figure, .agent-guide-prompt-card, .agent-guide-note { margin-left: 0; }
  .agent-guide-prompt-card { padding: 12px; }
  .onboarding-progress { margin-bottom: 20px; }
  .onboarding-illustration { width: 62px; height: 62px; margin-bottom: 14px; border-radius: 18px; }
  .onboarding-body h3 { font-size: 17px; }
  .choice-card-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .military-process-row { grid-template-columns: 1fr; }
  .drawer-status-row { flex-wrap: wrap; gap: 10px; }
  .drawer-status-row .button-row { margin-left: auto; }
  .compact-definition > div { gap: 12px; }
  .compact-definition dt { min-width: 82px; }
  .drawer-submit-row > .field-help { max-width: 180px; }
  .table-footer { gap: 8px; }
}
@media (max-height: 520px) {
  .modal { max-height: calc(100dvh - 16px); }
  .drawer-heading { padding-top: 10px; padding-bottom: 10px; }
  .drawer-footer { max-height: 45dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.auth-loading .sidebar, .auth-loading .workspace, .auth-required .sidebar, .auth-required .workspace,
.auth-loading .skip-link, .auth-required .skip-link, .auth-loading .sidebar-backdrop, .auth-required .sidebar-backdrop { display: none; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f2f3ed; }
.login-page[hidden] { display: none; }
.note-editor { border: 1px solid #ccd5c7; border-radius: 8px; background: #fff; overflow: hidden; }
.note-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #e1e6dc; background: #f6f8f3; }
.note-toolbar button { border: 0; border-radius: 4px; padding: 5px 8px; background: transparent; font: inherit; color: #344c3b; cursor: pointer; }
.note-toolbar button:hover, .note-toolbar button:focus-visible { background: #e4ecdf; }
.note-toolbar button:disabled { opacity: .5; cursor: default; }
.note-editor-content { min-height: 94px; max-height: 210px; overflow-y: auto; padding: 9px 12px; line-height: 1.6; overflow-wrap: anywhere; }
.note-editor-content p, .note-editor-content ul, .note-editor-content ol { margin: 0 0 8px; }
.note-editor-content [contenteditable] { min-height: 1.6em; outline: none; }
.note-editor-content [contenteditable]:focus { box-shadow: inset 2px 0 #7c9e71; }
.release-note-view { max-height: 240px; overflow-y: auto; overflow-wrap: anywhere; white-space: normal; line-height: 1.6; }
.release-note-view p, .release-note-view ul, .release-note-view ol { margin: 0 0 6px; }
#publish-form .form-field { margin-top: 12px; }
.login-card { width: min(100%, 420px); padding: 36px; background: #fff; border: 1px solid #dfe7d9; border-radius: 14px; box-shadow: 0 16px 48px #242a2d09, 0 2px 4px #242a2d03; }
.login-card h1 { margin: 32px 0 8px; font-size: 25px; }
.login-brand { display: flex; align-items: center; gap: 10px; color: #344c3b; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.login-brand .brand-mark i { background: #527a60; }
.login-brand .brand-mark i:last-child { background: #adc5aa; }
.login-card .form-field { margin-top: 20px; }
.login-card .button { width: 100%; margin-top: 8px; }
.login-card fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.wecom-login-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: #8a948c; font-size: 12px; }
.wecom-login-row::before, .wecom-login-row::after { content: ""; height: 1px; flex: 1; background: #e2e7df; }
.login-card .wecom-login-button { margin-top: 0; color: #236f4d; border-color: #bad2c3; background: #f8fbf8; }
.login-card .wecom-login-button:hover:not(:disabled) { border-color: #85ad94; background: #eff6f0; }
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; gap: 6px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-left { flex: 1 1 100%; }
  .topbar-actions { flex: 1 1 100%; flex-wrap: wrap; gap: 14px; padding-left: 2px; }
  .topbar-actions .session-identity { max-width: min(210px, 58vw); margin-right: auto; }
  .topbar-actions #last-synced { display: none; }
  .topbar-actions .icon-button { margin-left: auto; }
  .breadcrumbs .current { max-width: 76vw; }
  .check-report-section { padding: 15px; }
  .login-card { padding: 28px 24px; }
}
