.nav-group {
  padding: 8px 10px 4px;
  color: #8290a7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
nav { max-height: 100vh; overflow-y: auto; }
nav button { padding: 6px 10px; }
.filters { margin: 0 0 12px; align-items: flex-end; }
.filters label { margin: 0; flex: 1; min-width: 150px; }
.filters button { margin-bottom: 0; }
.filters details { flex-basis: 100%; }
.pagination { margin: 12px 0; }
.license-key { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; white-space: nowrap; }
p.license-key { white-space: normal; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.metrics .card { margin: 0; padding: 12px; min-height: 78px; }
.metrics h2 { margin-bottom: 6px; font-size: 12px; font-weight: 500; color: #68738a; }
.metric-value { font-size: 26px; line-height: 1.2; }
.status-active { background: #e3f5eb; color: #21603e; }
.status-suspended, .status-expired { background: #fff1d7; color: #805600; }
.status-revoked { background: #fce5e5; color: #8d2929; }
.picker { min-width: 0; border: 1px solid #e6e9f0; border-radius: 7px; padding: 10px; }
.picker > .row { margin-bottom: 8px; }
.picker > .row input { flex: 1; width: 120px; }
.picker p { margin-bottom: 0; }
.action-dialog {
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  padding: 16px;
  max-width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #15203c;
}
.action-dialog::backdrop { background: #15203c66; }
.action-dialog textarea { width: 100%; }
.history { margin-top: 12px; }
.history .card { padding: 0; }
.history code, td code { font-size: 11px; }
.history pre { max-width: 340px; font-size: 11px; }
.grid > p, .grid > button { align-self: end; }
main details > form { padding-top: 8px; }
main details { scroll-margin-top: 16px; }
table button { white-space: nowrap; }
td .license-key { display: block; margin-top: 4px; }
.license-register-table table { min-width: 1000px; }
.license-register-table td:first-child { min-width: 190px; }
.license-register-table td:nth-child(2) { min-width: 210px; }
.register-issue { margin-top: 12px; }
.register-issue > label { max-width: 360px; margin-top: 12px; }
.license-drawer {
  position: fixed;
  inset: 52px 0 0 auto;
  z-index: 30;
  width: min(780px, 100vw);
  box-sizing: border-box;
  padding: 16px;
  overflow-y: auto;
  background: #f5f6fb;
  border-left: 1px solid #dfe3ee;
  box-shadow: -12px 0 32px #15203c24;
}
.license-drawer > button { margin-bottom: 12px; }
.license-drawer .card { margin-bottom: 12px; }
.license-drawer .row { flex-wrap: wrap; }
.license-drawer .grid > p { grid-column: 1/-1; }
.license-drawer .grid > button { justify-self: start; }
.license-drawer table { min-width: 0; }
.license-drawer td { overflow-wrap: normal; }
.chart-bars { display: grid; gap: 6px; }
.chart-row {
  display: grid;
  grid-template-columns: 80px minmax(100px, 1fr) 44px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.chart-bar { height: 10px; background: #6150d3; border-radius: 3px; min-width: 0; }
.grid label:has(textarea) { grid-column: 1/-1; }
@media (min-width: 1700px) {
  .metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .license-drawer table { min-width: 480px; }
  nav { max-height: none; overflow-y: hidden; align-items: center; }
  nav .nav-group { display: none; }
  nav button { min-height: 44px; }
  .filters label { min-width: min(130px, 100%); }
  .action-dialog { padding: 14px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .card { padding: 12px; }
  .metric-value { font-size: 24px; }
  .chart-row { grid-template-columns: 66px minmax(70px, 1fr) 32px; gap: 6px; }
}
