:root {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #262b33;
  background: #f7f8fa;
  --ink: #262b33;
  --muted: #68717e;
  --line: #e1e5e9;
  --green: #157354;
  --red: #b6353a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d6dbe1;
  border-radius: 5px;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s;
}
button:hover {
  background: #f1f4f6;
  border-color: #b7c1cb;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #105d43;
}
.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.danger-text {
  color: var(--red);
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
  flex-shrink: 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding-inline: 7px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #cbd2da;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 36px;
}
input::placeholder {
  color: #7b8390;
}
input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  height: 15px;
  accent-color: var(--green);
  padding: 0;
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 6px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 9px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
code,
.mono {
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.align-right {
  text-align: right;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form-error {
  color: var(--red);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
}
.form-error:empty {
  display: none;
}
.field-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin: -9px 0 0;
}
.app {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 29px 14px 20px;
  background: #1d2127;
  color: #c2c7ce;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 0 13px 34px;
}
.brand span {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #b2b9c2;
  margin-top: 6px;
}
.nav-label {
  padding: 0 14px;
  margin-bottom: 12px;
  color: #9ca5b2;
  font-size: 11px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav button {
  background: transparent;
  border: 0;
  justify-content: flex-start;
  color: #c7ced7;
  padding: 11px 14px;
  gap: 11px;
  min-height: 43px;
}
.sidebar nav button.active {
  background: #2b3936;
  color: #c2f0da;
}
.sidebar nav button:hover {
  background: #2b3037;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #a9b2bc;
  padding: 15px 12px 0;
  border-top: 1px solid #343940;
  overflow-wrap: anywhere;
}
.server-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66b996;
  flex-shrink: 0;
}
.shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 65px;
  min-height: 65px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.breadcrumb span {
  color: #aeb5be;
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.top-actions .icon-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.user-label {
  font-size: 12px;
  border-right: 1px solid var(--line);
  padding-right: 15px;
  margin-right: 5px;
}
.shell main {
  padding: 29px 34px 24px;
  flex: 1;
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.metric {
  border-right: 1px solid var(--line);
  padding-left: 12px;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.metric strong {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metric em {
  font-style: normal;
  font-size: 11px;
  margin-left: 10px;
  color: var(--muted);
}
.compact .metric strong {
  font-size: 23px;
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}
.filterbar select {
  font-size: 12px;
  max-width: 210px;
}
.engine-toolbar .engine-version {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.engine-version input { width: 112px; }
.engine-toolbar > button, .engine-version input { height: 36px; }
.engine-artifacts { margin-bottom: 14px; }
.engine-artifacts td:first-child { max-width: 240px; overflow-wrap: anywhere; }
.engine-artifacts small { display: block; margin-top: 4px; color: var(--muted); font-family: monospace; }
.engine-artifact-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.engine-artifact-actions button, .engine-artifact-actions a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; }
.engine-artifact-actions a { color: inherit; border: 1px solid var(--line); border-radius: 5px; }
.engine-artifact-actions svg { width: 16px; height: 16px; }
.search {
  position: relative;
  flex: 1 1 230px;
  max-width: 420px;
}
.search input {
  width: 100%;
  padding-left: 34px;
  font-weight: 400;
  font-size: 12px;
}
.search > svg {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.date-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 3px 0 18px;
}
.date-filters label {
  font-size: 11px;
}
.date-filters input {
  font-size: 12px;
}
.list-toolbar {
  min-height: 30px;
  margin: 0 0 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.list-toolbar button {
  min-height: 29px;
  padding: 3px 9px;
  font-size: 12px;
}
.page-selection {
  flex-direction: row;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
}
#licenseResult { margin-right: auto; }
.nav-mobile-label,
.mobile-feature-summary { display: none; }
.engine-devices-panel { margin-bottom: 22px; }
.engine-devices-panel summary { cursor: pointer; padding: 8px 0; }
#selectedCount {
  font-size: 12px;
  color: var(--green);
}
.license-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 6px; }
.license-code-value { min-width: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.license-code-tools { display: inline-flex; align-items: center; gap: 6px; }
.license-code-tools .icon-button { flex: 0 0 30px; width: 30px; height: 30px; padding: 6px; }
.license-code-tools .icon-button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 760px) {
  .license-code { grid-template-columns: minmax(0, 1fr); }
  .license-code-tools .icon-button { flex-basis: 40px; width: 40px; height: 40px; }
}
.table-wrap {
  width: 100%;
  overflow: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 700px;
}
th {
  height: 40px;
  white-space: nowrap;
  color: #646e7b;
  font-weight: 500;
  background: #f2f4f6;
}
th,
td {
  padding: 13px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #edf0f2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfc;
}
td strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.check-cell {
  width: 36px;
  padding-right: 0;
}
td.actions {
  white-space: nowrap;
  text-align: right;
}
td.actions button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 6px;
  background: transparent;
  border-color: transparent;
}
td.actions button:hover {
  background: #edf2f4;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active,
.badge.free {
  background: #e8f5ef;
  color: #146a4a;
}
.badge.locked,
.badge.expiring {
  background: #fff4de;
  color: #8a5a14;
}
.badge.hidden {
  background: #edf1fa;
  color: #4c5b8e;
}
.badge.expired,
.badge.revoked {
  background: #fceced;
  color: #a13b42;
}
.badge.deleted {
  background: #eff0f2;
  color: #69717c;
}
.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  min-height: 65px;
  flex-wrap: wrap;
}
.pager > span:first-child {
  margin-right: auto;
}
.pager button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px;
}
.pager select {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 7px;
}
.workspace-footer {
  padding: 15px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #727c89;
  gap: 10px;
}
.notice {
  border-left: 3px solid var(--green);
  background: #eaf5ee;
  padding: 11px 15px;
  margin-bottom: 20px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fff0ef;
  border-color: var(--red);
  color: #a13239;
}
.policy-group {
  margin-bottom: 23px;
}
.policy-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.policy-group-header span {
  color: var(--muted);
  font-size: 11px;
}
.policy-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}
.policy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e9ecef;
  min-width: 0;
}
.policy-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.policy-name small {
  display: block;
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 3px;
}
.policy-row select {
  font-size: 12px;
  width: 160px;
}
.policy-row.changed .policy-name::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bf861c;
  margin-right: 7px;
}
.security-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.security-section h2 {
  font-size: 14px;
}
.security-copy {
  max-width: 700px;
  font-size: 13px;
  color: #5c6673;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid input,
.form-grid select {
  width: 100%;
}
.span-all {
  grid-column: 1/-1;
}
.service-info {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 13px;
  margin: 0;
  font-size: 12px;
}
.service-info dt {
  color: var(--muted);
}
.service-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 24px 20px;
  background: #fff;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 auto 55px;
}
.auth-brand strong {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.2;
}
.auth-brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.auth-form {
  width: 100%;
  max-width: 350px;
}
.auth-form h1 {
  font-size: 24px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  color: #708079;
  margin-bottom: 7px;
  letter-spacing: 0;
}
.auth-form #recoverLink {
  margin: 22px auto;
  display: flex;
  font-size: 12px;
}
.auth-footer {
  margin-top: auto;
  padding-top: 40px;
  color: var(--muted);
  font-size: 11px;
}
dialog {
  border: 1px solid #d7dee4;
  border-radius: 8px;
  padding: 0;
  width: min(490px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 90px #15213233;
}
dialog::backdrop {
  background: #10171e66;
  backdrop-filter: blur(3px);
}
.wide-dialog {
  width: min(760px, calc(100vw - 32px));
}
.small-dialog {
  width: min(410px, calc(100vw - 32px));
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 17px;
}
.dialog-heading button {
  border: 0;
}
.dialog-body {
  padding: 23px;
}
.dialog-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  background: #fbfcfd;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 23px 0 10px;
}
.section-heading button {
  font-size: 12px;
  min-height: 28px;
}
.feature-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}
.feature-group {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.feature-group legend {
  padding: 0 0 8px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.feature-group legend label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.feature-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 6px;
  padding-top: 10px;
}
.feature-choices label {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
}
.feature-choices input {
  margin-top: 2px;
}
.callout {
  font-size: 12px;
  padding: 12px;
  background: #edf7f1;
  color: #246849;
  border-left: 3px solid #3c986a;
}
.callout.warning {
  background: #fff7e8;
  color: #7a581f;
  border-color: #c5953a;
}
.code-output {
  width: 100%;
  font:
    12px/1.8 Consolas,
    monospace;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}
.confirmation-icon {
  color: #9b712a;
  background: #fff3d9;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.confirmation-icon svg {
  width: 20px;
  height: 20px;
}
#confirmText {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
#totpQR {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  max-width: 100%;
  object-fit: contain;
}
#totpSecret {
  font-family: Consolas, monospace;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}

/* Platform overview charts and dedicated issuance / online-user pages. */
.platform-charts {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr);
  gap: 18px;
  margin: 0 0 24px;
}
.chart-card,
.issue-page-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.chart-heading h2 { margin: 0 0 4px; font-size: 15px; }
.chart-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.chart-heading > svg { width: 19px; color: var(--green); }
.donut-layout { display: flex; align-items: center; gap: 24px; min-height: 145px; }
.donut-chart {
  width: 142px; height: 142px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; flex: 0 0 auto;
  position: relative;
}
.donut-chart::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.donut-chart span, .donut-chart small { position: relative; z-index: 1; }
.donut-chart span { font-size: 28px; line-height: 1; font-weight: 650; }
.donut-chart small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.chart-legend { display: grid; gap: 10px; width: 100%; }
.legend-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.legend-item strong { font-variant-numeric: tabular-nums; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.bar-chart { display: grid; gap: 14px; min-height: 145px; align-content: center; }
.bar-row { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(100px, 1.2fr) 40px 52px; gap: 10px; align-items: center; font-size: 11px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #edf1f5; height: 9px; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; width: var(--bar-size); height: 100%; background: linear-gradient(90deg, #3aab7e, #70c49e); border-radius: inherit; }
.bar-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar-row small { color: var(--muted); white-space: nowrap; }
.issue-page-card { max-width: 1080px; }
.issue-page-toolbar { display: flex; align-items: end; gap: 18px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.issue-software-field { max-width: 480px; flex: 1 1 360px; }
.issue-software-field select { width: 100%; }
.issue-page-toolbar .field-note { padding-bottom: 10px; }
.issue-page-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.online-table table { min-width: 980px; }
.online-table td:first-child { max-width: 220px; }
@media (max-width: 1050px) {
  .platform-charts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .donut-layout { align-items: flex-start; flex-direction: column; }
  .donut-chart { align-self: center; }
  .issue-page-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .issue-software-field { max-width: none; }
  .issue-page-toolbar .field-note { padding: 0; }
  .bar-row { grid-template-columns: minmax(70px, .65fr) minmax(70px, 1fr) 30px 45px; gap: 6px; }
}
.policy-row {
  flex-direction: row;
}
.sidebar {
  min-width: 0;
  background: linear-gradient(165deg, #4960e9 0%, #5753d2 49%, #8642ad 100%);
  color: #fff;
}
.brand {
  border-bottom: 1px solid #ffffff30;
  padding-bottom: 25px;
  margin-bottom: 27px;
}
.brand small,
.nav-label {
  color: #e1e1ff;
}
.nav-label {
  font-size: 12px;
}
.sidebar nav {
  gap: 8px;
}
.sidebar nav button {
  color: #f2f2ff;
  min-height: 46px;
  font-weight: 500;
}
.sidebar nav button svg {
  width: 19px;
  height: 19px;
}
.sidebar nav button.active {
  background: #ffffff23;
  color: #fff;
  box-shadow: inset 3px 0 0 #e7e8ff;
}
.sidebar nav button:hover {
  background: #ffffff1c;
}
.sidebar-bottom {
  border-top-color: #ffffff32;
  color: #f0efff;
  padding-top: 19px;
}
.server-dot {
  background: #3de2ab;
  box-shadow: 0 0 0 4px #ffffff13;
}
.sidebar-toggle {
  border: 0;
  background: transparent;
  color: #efeeff;
  width: 100%;
  margin-top: 19px;
  gap: 10px;
  min-height: 40px;
  justify-content: center;
}
.policy-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.policy-entry .policy-row {
  flex: 1;
  min-width: 0;
}
.policy-entry > button {
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background: #ffffff18;
  border: 0;
}
.sidebar-toggle svg {
  width: 19px;
  height: 19px;
}
.collapse-label {
  font-size: 12px;
}
.app.is-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}
.is-collapsed .sidebar {
  padding-inline: 10px;
}
.is-collapsed .brand {
  justify-content: center;
  padding: 0 0 24px;
}
.is-collapsed .brand span,
.is-collapsed .nav-label,
.is-collapsed .sidebar nav button span,
.is-collapsed #sidebarServer,
.is-collapsed .collapse-label {
  display: none;
}
.is-collapsed .sidebar nav button {
  padding: 10px;
  justify-content: center;
}
.is-collapsed .sidebar-bottom {
  justify-content: center;
  padding-inline: 0;
}
.is-collapsed .sidebar-toggle {
  padding-inline: 0;
}
@media (min-width: 1500px) {
  .shell main {
    padding: 32px 45px;
  }
  .topbar {
    padding-inline: 45px;
  }
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 178px minmax(0, 1fr);
  }
  .shell main {
    padding: 25px 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .filterbar select {
    flex: 1;
    max-width: none;
  }
  .filterbar .search {
    max-width: none;
  }
  .policy-items {
    grid-template-columns: 1fr;
  }
  .security-section {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
  .workspace-footer {
    padding-inline: 22px;
  }
}
@media (max-width: 760px) {
  .app,
  .app.is-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 13px 16px 0;
    display: block;
  }
  .brand {
    padding: 0 45px 15px 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .brand span {
    font-size: 17px;
  }
  .brand small {
    display: none;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    margin: 0;
  }
  .collapse-label {
    display: none;
  }
  .is-collapsed .brand {
    padding: 0 45px 12px 0;
    justify-content: flex-start;
  }
  .is-collapsed .brand span {
    display: block;
  }
  .is-collapsed .sidebar nav {
    display: none;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding-bottom: 10px;
  }
  .sidebar nav button {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 7px 2px;
    font-size: 12px;
    gap: 5px;
    min-height: 58px;
  }
  .sidebar nav button svg {
    width: 18px;
    height: 18px;
  }
  .nav-full-label { display: none; }
  .nav-mobile-label { display: inline; }
  .topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 17px;
  }
  .shell main {
    padding: 23px 17px;
  }
  .user-label {
    padding-right: 8px;
    margin-right: 0;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
  }
  .page-heading {
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading .inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: none;
  }
  .page-heading button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .page-heading p {
    font-size: 11px;
  }
  h1 {
    font-size: 21px;
  }
  .metrics {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    row-gap: 21px;
  }
  .metric {
    padding-left: 0;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric em {
    font-size: 10px;
  }
  .filterbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .filterbar .search {
    grid-column: 1 / -1;
    max-width: none;
  }
  .filterbar select {
    width: 100%;
    max-width: 100%;
  }
  .filterbar .grow {
    display: none;
  }
  .policy-row select {
    width: 150px;
  }
  .security-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-grid {
    gap: 13px;
  }
  .feature-groups {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 19px;
  }
  .dialog-heading {
    padding-inline: 18px;
  }
  .workspace-footer {
    padding-inline: 17px;
  }
  .date-filters label {
    width: calc(50% - 8px);
  }
  .date-filters input {
    width: 100%;
  }
  .page-heading > div:first-child {
    min-width: 0;
  }
  .list-toolbar {
    font-size: 11px;
  }
  .auth-screen {
    padding-top: 35px;
  }
  .auth-brand {
    margin-bottom: 38px;
  }
  .shell main { padding: 20px 14px; }
  .topbar { padding-inline: 14px; gap: 8px; }
  .breadcrumb { gap: 0; }
  .breadcrumb > span { display: none; }
  .breadcrumb strong { font-size: 12px; white-space: nowrap; }
  .top-actions { gap: 3px; min-width: 0; }
  .user-label { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  button, input, select { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  input[type="checkbox"] { min-height: 18px; width: 18px; height: 18px; }
  .icon-button { width: 44px; height: 44px; }
  .sidebar-toggle { width: 44px; height: 44px; top: 5px; }
  .page-heading button { min-height: 44px; }
  .page-heading .inline button { padding: 7px 5px; font-size: 11px; gap: 5px; }
  .search input { min-height: 44px; font-size: 14px; }
  .search > svg { top: 14px; }
  .filterbar select { font-size: 14px; }
  .filterbar > .icon-button { width: 100%; }
  #clearDeviceLicense { grid-column: 1 / -1; }
  .engine-toolbar { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 12px; }
  .engine-toolbar > strong { font-size: 14px; }
  #engineStatus { text-align: right; overflow-wrap: anywhere; }
  .engine-toolbar .engine-version {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .engine-version input { width: 100%; height: 44px; }
  .engine-toolbar > button { height: 44px; }
  #engineDevices .filterbar { grid-template-columns: minmax(0, 1fr) auto; }
  #engineDevices .filterbar span { min-width: 0; overflow-wrap: anywhere; }
  .engine-devices-panel summary { min-height: 44px; }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .list-toolbar { gap: 8px 12px; }
  .page-selection { min-height: 44px; }
  #batchTools { flex-basis: 100%; gap: 8px; padding-bottom: 8px; }
  #batchTools button { min-height: 40px; padding-inline: 12px; }
  .responsive-table { overflow: visible; border: 0; background: transparent; }
  .responsive-table table { display: block; min-width: 0; }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .responsive-table tbody { display: grid; gap: 12px; }
  .responsive-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    min-width: 0;
  }
  .responsive-table tbody td {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .responsive-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font: 11px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--muted);
  }
  .responsive-table tbody td:first-child { grid-column: 1 / -1; }
  .responsive-table tbody td:first-child::before { display: none; }
  .responsive-table td strong { font-size: 14px; }
  .responsive-table td small { max-width: none; }
  .responsive-table td[data-label="操作"] {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .responsive-table td[data-label="操作"]::before { display: none; }
  .responsive-table td.actions button,
  .engine-artifact-actions button,
  .engine-artifact-actions a { width: 44px; height: 44px; min-height: 44px; }
  .engine-artifact-actions { gap: 10px; }
  .license-table tbody tr { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px 10px; }
  .license-table tbody td { grid-column: 2 / -1; }
  .license-table tbody td.check-cell { grid-column: 1; grid-row: 1; padding-top: 2px; }
  .license-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .license-table tbody td:nth-child(6) { grid-column: 3; grid-row: 1; }
  .license-table tbody td:nth-child(2)::before,
  .license-table tbody td:nth-child(6)::before { display: none; }
  .license-table tbody td.actions { grid-column: 1 / -1; }
  .license-table .desktop-feature-summary { display: none; }
  .license-table .mobile-feature-summary { display: inline; }
  .license-table td[data-label="绑定设备"] { display: flex; align-items: center; justify-content: space-between; }
  .license-table td[data-label="绑定设备"]::before { margin-bottom: 0; }
  .license-table td[data-label="绑定设备"] button { min-width: 64px; color: var(--green); }
  .audit-table tbody td:last-child { grid-column: 1 / -1; }
  .responsive-table tbody td[colspan] { grid-column: 1 / -1; grid-row: auto; padding: 20px; text-align: center; color: var(--muted); }
  .responsive-table tbody td[colspan]::before { display: none; }
  .pager { gap: 8px; padding-block: 12px; }
  .pager button { width: 44px; height: 44px; }
  .pager select { min-height: 44px; max-width: 105px; }
  .policy-row select { flex-shrink: 0; width: 148px; font-size: 14px; }
  .policy-name { overflow-wrap: anywhere; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .section-heading button { min-height: 40px; }
  .dialog-body { padding: 16px; }
  .dialog-heading, .dialog-footer { padding-inline: 16px; }
  .workspace-footer { flex-wrap: wrap; padding: 15px 14px; }
}
@media (max-width: 360px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .user-label { max-width: 88px; }
  .page-heading > #newLicense { width: 100%; }
  .pager { justify-content: space-between; }
  .pager > span:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
