#softwareSelector { width: 180px; max-width: 30vw; }
.software-actions { display: flex; align-items: center; gap: 10px; }
.software-actions button { width: 34px; height: 34px; padding: 7px; }
#softwareList td:first-child small { display: block; color: var(--muted, #66736c); margin-top: 4px; }
.software-dialog { width: min(440px, calc(100vw - 24px)); }
.software-dialog textarea { width: 100%; resize: vertical; font-family: monospace; }
.software-dialog label.publisher-check { flex-direction: row; align-items: center; gap: 8px; }
.software-dialog label.publisher-check input { width: auto; }
.software-dialog .dialog-body { max-height: 68vh; overflow: auto; }
.policy-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.policy-entry { border-bottom: 1px solid var(--line); padding: 2px 0; }
.policy-entry .policy-row { border: 0; }
.policy-row { gap: 8px; padding: 9px 0; }
.policy-name { overflow-wrap: anywhere; }
.policy-row select { width: 132px; flex-shrink: 0; }
.policy-entry > button { width: 34px; height: 36px; min-height: 36px; padding: 7px; }
.empty-state { color: var(--muted); padding: 22px 0; margin: 0; font-size: 13px; }
.chart-card { border-radius: 8px; }
.platform-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-heading > svg { height: 20px; flex: 0 0 20px; }
.donut-layout { gap: 20px; }
.donut-chart { width: 128px; height: 128px; }
.bar-row { grid-template-columns: minmax(80px, .8fr) minmax(80px, 1.5fr) 36px; }
.stacked-track { display: flex; height: 12px; }
.stacked-track > span { height: 100%; }
#platformStats .metric { position: relative; padding-right: 36px; }
#platformStats .metric > svg { position: absolute; right: 16px; top: 14px; width: 24px; height: 24px; color: var(--green); }
.platform-operation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.platform-operation-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.platform-operation-card > div > svg { width: 21px; height: 21px; color: var(--green); margin-bottom: 8px; }
.platform-operation-card h2 { font-size: 14px; margin-bottom: 6px; }
.platform-operation-card p { margin: 0; color: var(--muted); font-size: 12px; }
.platform-operation-card button { margin-top: auto; }
.platform-software-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.platform-software-card { min-width: 0; border-top: 1px solid var(--line); padding: 18px 0; }
.software-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.software-chart-heading > strong { overflow-wrap: anywhere; }
.software-chart-line { display: grid; grid-template-columns: 65px minmax(0, 1fr) 60px; gap: 12px; align-items: center; margin: 10px 0; font-size: 12px; }
.software-chart-line > strong { text-align: right; font-variant-numeric: tabular-nums; }
.software-chart-line progress { width: 100%; height: 9px; border: 0; border-radius: 5px; overflow: hidden; accent-color: var(--green); }
.software-chart-line progress::-webkit-progress-bar { background: #edf1f5; }
.software-chart-line progress::-webkit-progress-value { background: var(--green); }
.platform-software-card > button { margin-top: 8px; }
.issue-page-toolbar { padding-block: 0 16px; margin-bottom: 18px; align-items: center; gap: 16px; }
.issue-software-field { flex: 0 1 360px; max-width: none; }
.issue-page-toolbar > span { padding-top: 22px; }
#licenseForm .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
#licenseForm .form-grid .span-all { grid-column: auto; }
@media (max-width: 640px) {
  #licenseForm .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  #licenseForm .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.license-table table { table-layout: fixed; min-width: 1000px; }
.license-table th:nth-child(1) { width: 34px; }
.license-table th:nth-child(2) { width: 26%; }
.license-table th:nth-child(3) { width: 16%; }
.license-table th:nth-child(4) { width: 13%; }
.license-table th:nth-child(5) { width: 13%; }
.license-table th:nth-child(6) { width: 72px; }
.license-table th:nth-child(7) { width: 76px; }
.license-table th:nth-child(8) { width: 112px; }
.license-table td { overflow-wrap: anywhere; }
.license-table td.actions { padding-inline: 6px; }
@media (max-width: 1100px) {
  .donut-layout { gap: 14px; }
  .donut-chart { width: 112px; height: 112px; }
  .chart-card { padding: 16px; }
}
@media (max-width: 959px) {
  .policy-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .policy-items { grid-template-columns: minmax(0, 1fr); }
  .platform-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 8px; padding-block: 10px; }
  .top-actions { margin-left: auto; }
  #softwareSelector { width: 150px; max-width: 42vw; }
  .workspace-name { display: none; }
}
@media (max-width: 760px) {
  .sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .donut-layout { flex-direction: row; align-items: center; gap: 24px; }
  .platform-operation-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0; }
  .platform-operation-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .platform-operation-card:last-child { border: 0; }
  .platform-operation-card > div > svg { display: none; }
  .platform-operation-card button { margin: 0; flex-shrink: 0; }
  .platform-software-cards { grid-template-columns: minmax(0, 1fr); }
  .issue-software-field { flex: auto; width: 100%; }
  .issue-page-toolbar > span { padding: 0; }
  .license-table table { min-width: 0; }
  .license-table tbody td:nth-child(6) { grid-column: 2 / -1; grid-row: auto; }
  .license-table tbody td:nth-child(6)::before { display: block; }
  .license-table tbody td:nth-child(7) { grid-column: 3; grid-row: 1; }
  .license-table tbody td:nth-child(7)::before { display: none; }
  .license-table td.actions { padding: 10px 0 0; }
  .policy-entry > button { width: 44px; height: 44px; min-height: 44px; }
  .policy-row select { width: 148px; }
}
@media (max-width: 350px) {
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
