:root {
  color-scheme: light;
  --ink: #1e2d34;
  --muted: #6b7b80;
  --line: #dfe7e4;
  --surface: #fff;
  --background: #f3f6f4;
  --green: #176b55;
  --green-dark: #10533f;
  --green-soft: #e9f4ef;
  --blue: #2d6c9b;
  --amber: #9a6819;
  --amber-soft: #fff5df;
  --red: #b5444b;
  --red-soft: #fbecee;
  --shadow: 0 12px 32px #1c3d3010;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 14px/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #8bb9d6;
  outline-offset: 2px;
}

input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8d3;
  border-radius: 5px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}
input::placeholder { color: #9aa8a7; }
select { padding-right: 30px; }
label { display: block; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; line-height: 1.25; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.4; }
h3 { font-size: 14px; }
p { margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { margin-bottom: 6px; color: #668078; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.error { min-height: 20px; margin: 10px 0; color: #b23640; font-size: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 5px;
  padding: 7px 13px;
  font-weight: 600;
  white-space: nowrap;
}
.primary { border: 1px solid var(--green); background: var(--green); color: #fff; }
.primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.secondary { border: 1px solid #d3ded9; background: #fff; color: #465b59; }
.secondary:hover { border-color: #b8cbc3; background: #f4f8f6; }
.danger { border-color: var(--red); background: var(--red); }
.danger:hover { border-color: #96373f; background: #96373f; }
.full { display: flex; width: 100%; justify-content: space-between; }

.brand-mark {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.login-wrap {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 84px;
  padding: 32px;
  background: #edf3f0;
}
.login-intro { width: 340px; }
.login-intro .brand-mark { width: 48px; height: 48px; margin-bottom: 28px; font-size: 24px; }
.login-intro h1 { margin: 16px 0; font-size: 36px; }
.login-intro > p:last-child { color: var(--muted); }
.login-card {
  width: 380px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 8px 0; font-size: 22px; }
.login-card label { margin: 18px 0 7px; }
.login-card .small { margin: 18px 0 0; }

.shell { min-height: 100vh; }
.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 32px;
  padding: 10px max(24px, calc((100vw - 1600px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.brand span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.app-header nav { display: flex; align-self: stretch; align-items: center; gap: 5px; }
.nav {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 5px;
  background: transparent;
  color: #5e706d;
  white-space: nowrap;
}
.nav:hover { background: #f0f5f2; color: var(--green-dark); }
.nav.active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.workspace { width: min(100%, 1650px); margin: 0 auto; padding: 25px 28px 32px; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 18px;
}
.page-heading > div > p:last-child { margin: 8px 0 0; }
.product-switch-label { display: flex; width: 260px; align-items: center; gap: 12px; color: #4e615e; font-size: 14px; }
.product-switch-label select { height: 44px; font-size: 16px; }
.admin-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid #d5e5dc;
  border-radius: 4px;
  background: #eff7f2;
  color: #49725f;
  font-size: 12px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 2px 8px #1c3d3006;
}
.panel-toolbar {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-toolbar p { margin: 3px 0 0; }
.panel-toolbar h2 { font-size: 15px; }
.issuance-panel { margin-bottom: 16px; }
.issuance-panel .panel-toolbar { min-height: 54px; background: #fbfcfb; }
.issuance-panel .panel-toolbar > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.issuance-panel .panel-toolbar p { margin: 0; }
.issue-form {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(145px, .85fr) minmax(170px, 1.15fr) minmax(110px, .7fr) minmax(225px, 1.35fr) auto;
  align-items: end;
  gap: 14px;
  padding: 14px 18px 16px;
}
.issue-form > label { min-width: 0; color: #4e615e; font-size: 12px; }
.issue-form > label > input, .issue-form > label > select { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; }
.field-hint { display: block; margin-top: 4px; color: #81908d; font-size: 10px; font-weight: 400; line-height: 1.35; }
.feature-options {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: center;
  gap: 2px 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.feature-options legend { grid-column: 1 / -1; margin-bottom: 3px; color: #4e615e; font-size: 12px; font-weight: 600; }
.feature-options .check { margin: 0; }
.feature-options .field-hint { grid-column: 1 / -1; }
.check { display: flex; min-width: 0; align-items: center; gap: 7px; margin: 10px 0; color: #4d5c5b; font-size: 12px; font-weight: 400; }
.check input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--green); }
.issue-form > .error { grid-column: 1 / -1; margin: -3px 0 0; }
.issue-submit { min-height: 39px; align-self: end; padding-inline: 15px; }

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 5px;
}
.stat-filter {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.stat-filter:hover { border-color: #a8c7b9; background: #fbfdfc; }
.stat-filter.selected { border-color: #79ab96; box-shadow: inset 0 0 0 1px #79ab96; }
.stat-filter span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stat-filter strong { flex: 0 0 auto; color: #344a45; font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-filter[data-status="valid"] strong { color: #168064; }
.stat-filter.warning strong { color: var(--amber); }
.stat-filter.expired strong { color: #68777a; }
.stat-filter.revoked strong { color: var(--red); }
.stats-note { margin: 6px 0 14px; color: #7a8987; font-size: 11px; }

.list-toolbar { min-height: 72px; }
.filter-search { display: flex; min-width: 0; align-items: center; gap: 7px; }
.filter-search input { width: min(33vw, 360px); min-width: 185px; height: 36px; padding-block: 7px; background: #fbfcfb; font-size: 12px; }
.filter-search .primary, .filter-search .secondary { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.filter-disclosure { padding: 10px 18px; border-bottom: 1px solid var(--line); }
.filter-disclosure summary { width: fit-content; cursor: pointer; color: #4e6860; font-size: 12px; font-weight: 600; }
.filter-selects { display: grid; grid-template-columns: repeat(2, minmax(150px, 220px)); gap: 12px; padding: 12px 0 2px; }
.filter-selects label, .page-controls label { color: #647470; font-size: 11px; font-weight: 500; }
.filter-selects select { display: block; margin-top: 4px; font-size: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-inline: 18px; }
.filter-chips:not(:empty) { padding-top: 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 4px; background: #edf4f1; color: #42695b; font-size: 11px; }
.filter-chip button { padding: 0; background: transparent; color: #526f64; font-size: 15px; line-height: 1; }
.list-error { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid #f0d6d8; background: #fff6f6; color: #9e343e; font-size: 12px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 1090px; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f7f9f8; color: #667772; font-size: 11px; font-weight: 600; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid #edf1ef; vertical-align: middle; color: #435451; }
tbody tr:hover { background: #fbfdfc; }
tbody tr:last-child td { border-bottom: 0; }
.license-table td:nth-child(4), .license-table td:nth-child(5), .license-table td:nth-child(6) { color: #71807d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer { display: block; max-width: 220px; overflow: hidden; color: #2b4840; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.detail-link { padding: 0; border: 0; background: transparent; color: #25664f; text-align: left; }
.detail-link:hover { color: #134d39; text-decoration: underline; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 4px; background: var(--green-soft); color: #267256; font-size: 11px; white-space: nowrap; }
.badge.valid, .badge.in_use { background: #e9f4ef; color: #247153; }
.badge.unused { background: #eef3f4; color: #536b70; }
.badge.expiring { background: var(--amber-soft); color: #93651c; }
.badge.expired { background: #eff1f2; color: #637174; }
.badge.revoked { background: var(--red-soft); color: #a23f47; }
.table-action {
  min-height: 27px;
  padding: 3px 7px;
  border: 1px solid #dce6e1;
  border-radius: 4px;
  background: #fff;
  color: #426359;
  font-size: 11px;
  white-space: nowrap;
}
.table-action:hover { border-color: #aac6b8; background: #eff7f2; color: #225740; }
.table-action.danger-text { border-color: #f0d9da; color: #a4444c; }
.table-action.danger-text:hover { border-color: #e6b8bb; background: #fff1f2; color: #8e3038; }
.actions { display: flex; min-width: 220px; flex-wrap: wrap; align-items: center; gap: 5px; }
.sort-button { padding: 0; background: transparent; color: inherit; font: inherit; }
.sort-button:hover { color: var(--green); }
th[aria-sort="ascending"] .sort-button span::after { content: " ↑"; color: var(--green); }
th[aria-sort="descending"] .sort-button span::after { content: " ↓"; color: var(--green); }
.loading-row { padding: 38px 20px; color: var(--muted); text-align: center; }
.empty { margin: 0; padding: 38px 18px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.page-controls { display: flex; align-items: center; gap: 7px; }
.page-controls label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.page-controls select { width: auto; min-height: 31px; margin: 0; padding: 4px 24px 4px 7px; font-size: 11px; }
.page-controls .secondary { min-height: 31px; padding: 4px 9px; font-size: 11px; }
.footnote { margin: 14px 0 0; color: #80908b; font-size: 11px; }

.details { max-width: 260px; overflow-wrap: anywhere; white-space: normal; }
dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #d9e4df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 80px #10291f38;
}
dialog::backdrop { background: #10251f70; backdrop-filter: blur(2px); }
dialog form > label, dialog form > div:not(.dialog-heading):not(.dialog-actions) > label:first-child { margin: 14px 0 6px; color: #4e615b; font-size: 12px; }
dialog .muted { font-size: 12px; }
.detail-dialog { width: min(760px, calc(100vw - 28px)); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 17px; }
.detail-dialog .dialog-heading { align-items: flex-start; }
.detail-dialog .eyebrow { margin-bottom: 3px; }
.icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 4px; background: transparent; color: #71817b; font-size: 24px; line-height: 1; }
.icon:hover { background: #f0f5f2; color: #344f44; }
.detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 12px 0 22px; }
.detail-fields > div { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-fields dt { color: var(--muted); font-size: 11px; }
.detail-fields dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 550; }
.detail-events h3 { margin: 0 0 8px; }
.detail-events ol { margin: 0; padding: 0; list-style: none; }
.detail-events li { padding: 10px 0; border-top: 1px solid var(--line); }
.event-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.event-meta, .event-details { margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.revoke-ack { margin-top: 14px; padding: 12px; border: 1px solid #eccacc; border-radius: 5px; background: #fff7f7; }
.revoke-ack > p { margin: 0 0 8px; color: #923944; font-size: 12px; }
.revoke-ack .check { margin: 5px 0 0; }
.quick-dates { display: flex; gap: 16px; margin-top: 6px; }
.text-button { padding: 2px 0; background: transparent; color: var(--blue); font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.text-button.danger-text { color: var(--red); }
#activation-code { min-height: 100px; resize: vertical; overflow-wrap: anywhere; background: #f6f9f7; font: 14px/1.65 ui-monospace, Consolas, monospace; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#toast { position: fixed; z-index: 100; top: 18px; left: 50%; max-width: min(90vw, 560px); transform: translateX(-50%); padding: 11px 18px; border: 1px solid #d3e4db; border-radius: 6px; background: #173f32; color: #fff; box-shadow: var(--shadow); }

@media (max-width: 1250px) {
  .app-header { gap: 18px; padding-inline: 20px; }
  .workspace { padding-inline: 20px; }
  .issue-form { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .feature-options { grid-column: span 2; }
  .issue-submit { justify-self: end; min-width: 150px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .product-switch-label { width: 100%; justify-content: space-between; }
  .product-switch-label select { width: min(230px, 62vw); }
  .app-header { position: static; flex-wrap: wrap; gap: 5px 12px; padding: 10px 14px; }
  .brand { margin-right: auto; }
  .app-header nav { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid #edf1ef; }
  .app-header nav .nav { min-height: 36px; }
  .header-actions { margin-left: 0; }
  .header-actions .nav { min-height: 33px; padding: 6px 8px; font-size: 11px; }
  .workspace { padding: 18px 14px 24px; }
  h1 { font-size: 24px; }
  .issue-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px; }
  .feature-options { grid-column: 1 / -1; }
  .issue-submit { grid-column: 1 / -1; justify-self: stretch; }
  .stat-filter { min-height: 68px; padding: 10px 11px; }
  .stat-filter span { white-space: normal; line-height: 1.35; }
  .stat-filter strong { font-size: 21px; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; padding: 13px; }
  .list-toolbar { gap: 10px; }
  .filter-search { width: 100%; flex-wrap: wrap; }
  .filter-search input { flex: 1 1 100%; width: 100%; min-width: 0; }
  .filter-search button { flex: 1 1 auto; }
  .filter-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .table-wrap tbody { display: block; padding: 8px; }
  .table-wrap tbody tr { display: block; margin: 0 0 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
  .table-wrap tbody tr:hover { background: #fff; }
  .table-wrap tbody td { display: grid; width: 100%; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; padding: 7px 0; border: 0; white-space: normal; }
  .table-wrap tbody td::before { content: attr(data-label); color: var(--muted); font-size: 11px; }
  .table-wrap tbody td:first-child { display: block; padding-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .table-wrap tbody td:first-child::before { content: none; }
  .table-wrap tbody td:last-child { margin-top: 3px; padding-top: 9px; border-top: 1px solid var(--line); }
  .table-wrap tbody td.loading-row { display: block; text-align: center; }
  .table-wrap tbody td.loading-row::before { content: none; }
  .customer { max-width: 100%; }
  .actions { min-width: 0; gap: 5px; }
  .pagination { align-items: flex-start; flex-direction: column; padding: 11px 13px; }
  .page-controls { width: 100%; flex-wrap: wrap; }
  .detail-fields { gap: 0 14px; }
}

@media (max-width: 480px) {
  .login-wrap { padding: 18px; }
  .login-intro { display: none; }
  .login-card { width: 100%; max-width: 380px; padding: 25px; }
  .header-actions { gap: 0; }
  .header-actions .nav { padding-inline: 6px; }
  .workspace { padding-inline: 10px; }
  .page-heading { margin-bottom: 13px; }
  .page-heading h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stat-filter { min-height: 62px; gap: 5px; padding: 8px; }
  .stat-filter span { font-size: 11px; }
  .stat-filter strong { font-size: 19px; }
  .issue-form { gap: 10px; padding: 11px; }
  .feature-options { gap: 2px 10px; }
  .filter-selects { grid-template-columns: 1fr; }
  .table-wrap tbody { padding: 7px; }
  .table-wrap tbody tr { padding: 9px; }
  .table-wrap tbody td { grid-template-columns: 88px minmax(0, 1fr); gap: 6px; font-size: 11px; }
  .table-action { min-height: 29px; padding-inline: 7px; }
  .pagination { padding: 10px; }
  .page-controls { gap: 5px; }
  .page-controls label { width: 100%; }
  .detail-fields { grid-template-columns: 1fr; }
  .event-head { display: block; }
  dialog { padding: 18px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions > button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Readability and aligned controls across the admin workspace. */
body { font-size: 16px; line-height: 1.55; }
button { appearance: none; }
.small, .eyebrow, .field-hint, .filter-disclosure summary, .filter-selects label,
.page-controls label, .filter-search input, .filter-search .primary, .filter-search .secondary,
.filter-selects select, .filter-chip, .list-error, th, .badge, .table-action,
.pagination, .page-controls select, .page-controls .secondary, .footnote,
.detail-fields dt, .event-meta, .event-details, .text-button, .admin-badge,
.login-card .muted { font-size: 14px; }
.eyebrow { font-size: 12px; }
.panel-toolbar h2, .list-toolbar h2 { font-size: 19px; }
.panel-toolbar .small { font-size: 14px; }
.workspace { padding-top: 30px; }
.page-heading { margin-bottom: 22px; }
.app-header { min-height: 74px; }
.nav { min-height: 42px; padding-inline: 16px; font-size: 15px; border: 0; }
.header-actions .nav { border: 0; }

.issue-form {
  grid-template-columns: minmax(175px, .9fr) minmax(170px, .9fr) minmax(250px, 1.35fr) minmax(135px, .65fr);
  align-items: start;
  gap: 16px 18px;
  padding: 20px 22px;
}
.issue-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.issue-field > label, .feature-options legend { margin: 0; color: #40544f; font-size: 15px; font-weight: 650; line-height: 1.35; }
.issue-field input, .issue-field select { width: 100%; height: 46px; margin: 0; padding: 9px 12px; font-size: 16px; }
.issue-field .field-hint { min-height: 1.45em; margin: 0; line-height: 1.45; }
.feature-options { grid-column: 1 / 4; display: flex; min-height: 46px; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 2px; }
.feature-options legend { float: left; margin-right: 4px; }
.feature-options .check { min-height: 42px; margin: 0; font-size: 15px; }
.feature-options .check input { width: 19px; height: 19px; flex-basis: 19px; }
.feature-options .field-hint { flex-basis: 100%; margin-top: -4px; font-size: 14px; }
.issue-submit { grid-column: 4; width: 100%; min-height: 46px; align-self: start; font-size: 16px; }
.issue-form > .error { grid-column: 1 / -1; margin: -6px 0 0; font-size: 14px; }

.stats { gap: 12px; }
.stat-filter { min-height: 86px; padding: 16px 18px; }
.stat-filter span { font-size: 15px; }
.stat-filter strong { font-size: 30px; }
.stats-note { margin: 8px 0 16px; font-size: 14px; }
.filter-search input { height: 44px; font-size: 15px; }
.filter-search .primary, .filter-search .secondary { min-height: 44px; font-size: 14px; }
.filter-disclosure { padding-block: 13px; }
.filter-disclosure summary { font-size: 15px; }
.filter-selects label, .page-controls label { font-size: 14px; }
.filter-selects select { min-height: 44px; font-size: 15px; }

table { min-width: 1260px; font-size: 15px; }
th { padding: 14px 15px; font-size: 14px; }
td { min-height: 62px; padding: 15px; font-size: 15px; }
.customer { font-size: 15px; }
.badge { min-height: 26px; padding: 3px 9px; font-size: 14px; }
.table-action { min-height: 36px; padding: 5px 9px; font-size: 14px; }
.actions { min-width: 235px; gap: 6px; }
.pagination { min-height: 56px; padding: 13px 18px; font-size: 14px; }
.page-controls select, .page-controls .secondary { min-height: 38px; font-size: 14px; }
.filter-chip { font-size: 14px; }
.footnote { font-size: 14px; }

dialog { font-size: 16px; }
.dialog-heading h2 { font-size: 20px; }
.detail-dialog { width: min(900px, calc(100vw - 32px)); }
.detail-dialog .dialog-heading h2 { font-size: 22px; }
.detail-code-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 14px;
  padding: 16px 18px;
  border: 1px solid #b9d7c8;
  border-radius: 6px;
  background: #f2f8f4;
}
.detail-code-copy { display: grid; min-width: 0; gap: 7px; }
.detail-code-copy > span { color: #3f5a4f; font-size: 14px; font-weight: 650; }
.detail-code-copy code { overflow-wrap: anywhere; color: #18392b; font: 600 18px/1.5 ui-monospace, Consolas, monospace; user-select: all; }
.detail-code-card .primary { min-height: 44px; font-size: 15px; }
.detail-code-missing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; margin: 8px 0 14px; padding: 16px 18px; border: 1px solid #e5d2a8; border-radius: 6px; background: #fffaf0; }
.detail-code-missing strong { color: #71551c; font-size: 16px; }
.detail-code-missing > div > p { margin: 6px 0 0; color: #756b56; font-size: 14px; }
.detail-code-missing > .secondary { min-height: 42px; font-size: 14px; }
.detail-code-missing form { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.detail-code-missing form label { display: block; margin: 0 0 7px; color: #40544f; font-size: 15px; font-weight: 650; }
.detail-code-missing form input { height: 46px; font: 16px ui-monospace, Consolas, monospace; }
.import-actions { display: flex; justify-content: flex-end; gap: 8px; }
.import-actions button { min-height: 42px; font-size: 14px; }
.detail-code-read-error { padding: 13px 16px; border: 1px solid #e9c8cb; border-radius: 5px; background: #fff6f6; color: #923944; font-size: 14px; }
.detail-fields { margin-top: 14px; }
.detail-fields dt { font-size: 14px; }
.detail-fields dd { font-size: 16px; line-height: 1.55; }
.detail-events h3 { font-size: 17px; }
.event-meta, .event-details { font-size: 14px; line-height: 1.5; }
.detail-events li { padding-block: 13px; }
.detail-events .event-head { font-size: 15px; }
.icon { border: 0; }
.sort-button { border: 0; }

@media (max-width: 1250px) {
  .issue-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-options { grid-column: 1 / 4; }
  .issue-submit { grid-column: 4; justify-self: stretch; min-width: 0; }
}
@media (max-width: 780px) {
  .issue-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .feature-options, .issue-submit { grid-column: 1 / -1; }
  .issue-submit { justify-self: stretch; }
  .stat-filter { min-height: 76px; }
  .stat-filter span { font-size: 14px; }
  .table-wrap table { min-width: 0; }
  .table-wrap tbody td { font-size: 15px; }
  .table-wrap tbody td::before { font-size: 14px; }
  .table-action { min-height: 42px; font-size: 14px; }
  .detail-fields dt { font-size: 14px; }
  .detail-fields dd { font-size: 16px; }
}
@media (max-width: 480px) {
  .issue-form { grid-template-columns: 1fr; gap: 13px; }
  .feature-options, .issue-submit { grid-column: 1; }
  .issue-field > label, .feature-options legend { font-size: 15px; }
  .issue-field input, .issue-field select { height: 46px; font-size: 16px; }
  .field-hint { font-size: 14px; }
  .stat-filter { min-height: 70px; padding: 10px; }
  .stat-filter span { font-size: 13px; }
  .stat-filter strong { font-size: 24px; }
  .filter-search input { height: 46px; font-size: 15px; }
  .table-wrap tbody td { grid-template-columns: 104px minmax(0, 1fr); font-size: 14px; }
  .table-wrap tbody td::before { font-size: 14px; }
  .table-action { min-height: 44px; padding-inline: 10px; font-size: 14px; }
  .detail-code-card { align-items: stretch; flex-direction: column; }
  .detail-code-copy code { font-size: 17px; }
  .detail-code-missing { grid-template-columns: 1fr; }
  .detail-code-missing > .secondary { justify-self: start; }
  .detail-code-missing form { grid-column: 1; }
  .detail-code-missing form input { font-size: 15px; }
  .detail-fields { grid-template-columns: 1fr; }
  .pagination, .footnote { font-size: 14px; }
}

/* Keep the product choice available in both authorizations and activity. */
.product-bar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.product-switch-label { width: auto; white-space: nowrap; }
.product-switch-label select { width: 220px; }
.license-table { min-width: 1400px; }
.license-table th:nth-child(1) { width: 10%; }
.license-table th:nth-child(2) { width: 13%; }
.license-table th:nth-child(3) { width: 8%; }
.license-table th:nth-child(4) { width: 10%; }
.license-table th:nth-child(5), .license-table th:nth-child(6) { width: 15%; }
.license-table th:nth-child(7) { width: 11%; }
.license-table th:nth-child(8) { width: 18%; }
.audit-table th:nth-child(1) { width: 10%; }
.audit-table th:nth-child(2) { width: 17%; }
.audit-table th:nth-child(7) { width: 26%; }
@media (max-width: 640px) {
  .product-bar, .product-switch-label { width: 100%; }
  .product-switch-label { justify-content: space-between; }
}
