:root {
  color-scheme: light;
  --ink: #211937;
  --muted: #68617a;
  --purple: #7351d2;
  --purple-text: #6340bf;
  --purple-dark: #302451;
  --accent: #8b6af0;
  --soft: #f0eaff;
  --background: #f7f6fc;
  --line: #eae6f4;
  --white: #fff;
  --shadow: 0 3px 14px #30245109;
  font-family: "Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.5;
}

button,input,select,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .6;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #ae93ff;
  outline-offset: 2px;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

h2 {
  font-size: 18px;
  line-height: 1.3;
}

h3 {
  font-size: 15px;
}

svg.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}

button svg.icon,.button svg.icon {
  width: 17px;
  height: 17px;
}

.loading-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #fff;
  color: #58438d;
}

.brand-mark .icon {
  width: 26px;
  height: 26px;
}

.avatar {
  height: 42px;
  width: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg,#b194fa,#7650df);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid #ffffff9a;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.circle-button {
  color: #47317f;
  border: 1px solid #f0ebfb;
  background: #fff;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  position: relative;
}

.circle-button:hover {
  background: var(--soft);
}

.circle-button svg.icon {
  height: 19px;
  width: 19px;
}

.notification-dot {
  width: 8px;
  height: 8px;
  position: absolute;
  right: 6px;
  top: 6px;
  border-radius: 50%;
  background: #e6526a;
}

.demo-strip {
  background: #fff1d9;
  color: #87550d;
  padding: 6px 11px;
  margin-bottom: 10px;
  border: 1px solid #f6dbac;
  border-radius: 7px;
  font-size: 12px;
}

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 3px 0 16px;
}

.page-top p {
  color: var(--muted);
  margin-top: 4px;
}

.page-top .actions {
  justify-content: flex-end;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hero {
  min-height: 110px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  text-align: center;
  background: #e4dcfa url('/static/academy-hero.webp') center 52%/cover no-repeat;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #ddd6f7;
  margin-bottom: 12px;
  color: #302451;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#ece4ff16,#f6f1ffbf 40%,#f6f1ffbf 60%,#ece4ff16);
  z-index: -1;
}

.hero strong {
  display: block;
  font-size: clamp(18px,2.3vw,30px);
  letter-spacing: .16em;
  font-weight: 850;
  text-shadow: 0 1px 3px #fff;
}

.hero span {
  display: block;
  font-size: clamp(12px,1.4vw,17px);
  font-weight: 650;
  letter-spacing: .2em;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(238px,25%);
  gap: 12px;
}

.dashboard-main,.dashboard-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.dash-pair {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr);
  gap: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow);
  min-width: 0;
  min-height: 78px;
}

.kpi-icon {
  display: grid;
  place-items: center;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg,#bba3fb,#805ce2);
  box-shadow: inset 0 1px 3px #ffffff4d;
  flex: none;
}

.kpi-icon .icon {
  width: 23px;
  height: 23px;
}

.kpi-icon.blue {
  background: linear-gradient(145deg,#82baff,#3886ea);
}

.kpi-icon.gold {
  background: linear-gradient(145deg,#ffd775,#df9b19);
}

.kpi-icon.green {
  background: linear-gradient(145deg,#8ce8bd,#2eaa77);
}

.kpi-icon.pink {
  background: linear-gradient(145deg,#f4a5ce,#d75b9b);
}

.kpi-icon.peach {
  background: linear-gradient(145deg,#ffaa8c,#e1755a);
}

.kpi-label {
  font-size: 12px;
  color: #514567;
  white-space: normal;
  line-height: 1.3;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi-value span {
  font-size: 11px;
  font-weight: 600;
  margin-left: 3px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-head h2 {
  min-width: 0;
}

.segments {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ebe6f7;
  border-radius: 7px;
  padding: 2px;
  background: #f6f3fc;
}

.segments button {
  background: transparent;
  border: 0;
  padding: 4px 9px;
  color: #51416f;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 12px;
}

.segments button.active {
  color: white;
  background: linear-gradient(115deg,#916ff4,#7a58de);
  font-weight: 650;
}

.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 15px;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 7px;
}

.chart-legend span {
  white-space: nowrap;
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 3px;
}

.chart {
  display: block;
  width: 100%;
  height: 215px;
}

.chart text {
  font-size: 11px;
  fill: #6d6481;
}

.chart .grid {
  stroke: #ede8f5;
  stroke-width: 1;
}

.chart .axis {
  stroke: #d9d1e9;
}

.rank-preview {
  list-style: none;
  padding: 0;
  margin: 5px 0 6px;
  display: grid;
}

.rank-preview li {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 3px;
  border-bottom: 1px solid #f0edf6;
}

.rank-preview li>span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-preview li small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.rank-number {
  height: 23px;
  min-width: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #f2edf9;
  color: #614c85;
  font-weight: 750;
  font-size: 11px;
}

.rank-number.r1 {
  background: #ffedb6;
  color: #8c5909;
}

.rank-number.r2 {
  background: #edf1f8;
  color: #516480;
}

.rank-number.r3 {
  background: #ffecde;
  color: #93491e;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--purple-text);
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.align-right {
  text-align: right;
}

.profile-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.profile-summary p {
  color: var(--muted);
  font-size: 12px;
}

.profile-summary .chip {
  margin-left: auto;
}

.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0edf6;
  padding: 7px 0;
}

.balance-line span {
  color: #584d6e;
}

.balance-line strong {
  font-size: 21px;
}

.balance-line small {
  font-size: 11px;
  margin-left: 3px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 11px;
}

.profile-actions .button {
  padding: 7px 4px;
  white-space: nowrap;
  font-size: 12px;
}

.todo-list {
  display: grid;
  gap: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0edf6;
  min-height: 37px;
}

.todo-item:last-child {
  border-bottom: 0;
}

.todo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fbf1da;
  color: #a76806;
  display: grid;
  place-items: center;
}

.todo-icon .icon {
  width: 16px;
  height: 16px;
}

.todo-item:nth-child(2) .todo-icon {
  background: #f3edff;
  color: #7652d5;
}

.todo-item:nth-child(3) .todo-icon {
  background: #fff0ed;
  color: #cb604a;
}

.todo-item:nth-child(4) .todo-icon {
  background: #e8f7f0;
  color: #28835d;
}

.todo-item b {
  margin-left: auto;
  color: #b53754;
}

.todo-item>.icon {
  width: 15px;
  color: var(--muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.quick-grid a {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 5px;
  padding: 10px 3px;
  border-radius: 8px;
  background: #f4effe;
  font-size: 11px;
  color: #392864;
}

.quick-grid a:hover {
  background: #eae0fe;
}

.quick-grid .icon {
  color: #7953e1;
  width: 24px;
  height: 24px;
}

.honor-strip {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px 7px;
  text-align: center;
}

.honor-item {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.honor-shield {
  width: 53px;
  height: 59px;
  background: linear-gradient(145deg,#ffe99d,#f0ad3a);
  color: #774902;
  clip-path: polygon(50% 0,93% 20%,93% 71%,50% 100%,7% 71%,7% 20%);
  display: grid;
  place-items: center;
}

.honor-item:nth-child(2) .honor-shield {
  background: linear-gradient(140deg,#decffc,#8963ee);
  color: #4b239f;
}

.honor-item:nth-child(3) .honor-shield {
  background: linear-gradient(140deg,#c5deff,#5e9af0);
  color: #174e93;
}

.honor-shield .icon {
  width: 25px;
  height: 25px;
}

.subtle-honors {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e5dcf7;
  border-radius: 7px;
  background: #fff;
  color: var(--purple-text);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.button:hover {
  background: #f7f2ff;
}

.button.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(120deg,#8c6be9,#7451d5);
}

.button.primary:hover {
  background: #704dce;
}

.button.danger {
  color: #a93651;
  background: #fff6f8;
  border-color: #f4d7df;
}

.button.small {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 12px;
}

.button.neutral {
  color: #4b3e61;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.table th {
  background: #f3effa;
  color: #53436c;
  font-weight: 650;
  text-align: left;
}

.table th,.table td {
  padding: 9px 10px;
  white-space: nowrap;
  border-bottom: 1px solid #f0edf6;
}

.table th:first-child {
  border-radius: 7px 0 0 7px;
}

.table th:last-child {
  border-radius: 0 7px 7px 0;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #fbf9fe;
}

.table .wrap {
  white-space: normal;
  min-width: 145px;
  overflow-wrap: anywhere;
}

.empty {
  padding: 22px 9px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.empty .icon {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto 5px;
  color: #aa96d1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 11px;
  background: #f1ecfa;
  color: #654a93;
  border-radius: 20px;
  padding: 3px 8px;
  font-weight: 650;
}

.chip.green {
  background: #e4f6ec;
  color: #246f4e;
}

.chip.gold {
  background: #fff2d7;
  color: #916017;
}

.chip.red {
  background: #fae9ef;
  color: #9b3e55;
}

.muted {
  color: var(--muted);
}

.positive {
  color: #16805b;
  font-weight: 700;
}

.danger-text {
  color: #a93651;
}

.spaced {
  display: grid;
  gap: 12px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.metrics-line {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.mini-metric {
  background: #f6f2fc;
  border-radius: 8px;
  padding: 8px 11px;
  min-width: 92px;
}

.mini-metric strong {
  font-size: 20px;
  display: block;
}

.mini-metric span {
  color: var(--muted);
  font-size: 12px;
}

.details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 11px;
}

.filter-form label {
  min-width: 115px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.filter-form input,.filter-form select {
  max-width: 200px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.form-grid label,.field {
  display: grid;
  gap: 4px;
  color: #504160;
  font-size: 13px;
  min-width: 0;
}

.form-grid .wide,.form-grid .form-actions,.form-grid .form-error {
  grid-column: 1/-1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
  margin-top: 3px;
}

.form-error {
  color: #9c2d49;
  background: #fff1f4;
  border: 1px solid #f5d3df;
  padding: 8px;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.form-error:empty {
  display: none;
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
}

input,select,textarea {
  min-height: 34px;
  width: 100%;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #ddd5ef;
  border-radius: 7px;
  color: var(--ink);
  min-width: 0;
}

input[type=checkbox] {
  min-height: auto;
  width: auto;
  accent-color: var(--purple);
}

input[type=file] {
  font-size: 12px;
}

textarea {
  resize: vertical;
  min-height: 75px;
}

.check-field {
  display: flex!important;
  align-items: center;
  gap: 7px!important;
}

.banner-message {
  padding: 10px 12px;
  background: #f0e9fc;
  color: #4a3676;
  border: 1px solid #e7dbfa;
  border-radius: 8px;
}

.modal-backdrop {
  background: #21193475;
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 25;
  padding: 12px;
}

.modal {
  width: min(100%,660px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: white;
  border-radius: 13px;
  box-shadow: 0 15px 55px #22163a65;
  padding: 16px;
}

.modal.narrow {
  width: min(100%,440px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.modal-head .circle-button {
  width: 31px;
  height: 31px;
}

.qr-body {
  text-align: center;
}

.qr-body img {
  display: block;
  width: min(240px,85%);
  margin: 8px auto;
  padding: 8px;
  background: #fff;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.qr-body .actions {
  justify-content: center;
  margin-top: 10px;
}

.toast-region {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 35;
  display: grid;
  gap: 7px;
  max-width: min(390px,calc(100vw - 24px));
}

.toast {
  color: white;
  background: #3b2a60;
  box-shadow: 0 4px 18px #22163a33;
  border-radius: 8px;
  padding: 10px 12px;
}

.toast.error {
  background: #8a3150;
}

.search-results {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.search-results a {
  padding: 7px 9px;
  border-radius: 7px;
  background: #f6f1fc;
  display: grid;
}

.search-results small {
  color: var(--muted);
}

.access-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(ellipse at top left,#ded3ff,transparent 48%),radial-gradient(ellipse at bottom right,#ebe0fb,transparent 51%),var(--background);
}

.access-card {
  width: min(100%,440px);
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px #30245115;
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-dark);
  margin-bottom: 15px;
}

.access-brand .brand-mark {
  background: var(--soft);
  color: var(--purple-text);
}

.access-card h1 {
  margin-bottom: 5px;
}

.access-card>.muted {
  margin-bottom: 15px;
}

.access-card .button.primary {
  min-height: 42px;
}

.access-card .demo-strip {
  margin: 15px 0 0;
}

.demo-logins {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.scan-page {
  max-width: 590px;
  margin: 0 auto;
  padding: 16px;
}

.scan-page .access-brand {
  margin-bottom: 15px;
}

.scan-page .card {
  margin-bottom: 11px;
}

.scan-page h1 {
  font-size: 22px;
}

.scan-head .muted {
  margin: 7px 0;
}

.scan-page .button {
  min-height: 40px;
}

.rating-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.rating-field legend {
  font-weight: 650;
  margin-bottom: 4px;
}

.stars {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 5px;
}

.stars label {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #eee7fa;
  border-radius: 7px;
  background: #f8f5fe;
  color: #785e9c;
  cursor: pointer;
  min-height: 42px;
  font-size: 16px;
}

.stars label.selected {
  background: #eee3ff;
  color: #5e38a7;
}

.stars input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.stars label:focus-within {
  outline: 2px solid #ae93ff;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(215px,1fr));
  gap: 10px;
}

.reward-card {
  display: grid;
  gap: 8px;
}

.reward-card .reward-image {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 7px;
  background: #f0e9fd;
}

.reward-placeholder {
  display: grid;
  place-items: center;
  min-height: 65px;
  border-radius: 7px;
  background: #f0e9fd;
  color: #875edc;
}

.reward-placeholder .icon {
  width: 28px;
  height: 28px;
}

.reward-card p {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.reward-card .actions {
  margin-top: auto;
}

@media(max-width:1260px) {
  .dash-pair {
    grid-template-columns: minmax(0,1fr);
  }
  .dash-pair>.card {
    min-height: 0;
  }
  .chart {
    height: 210px;
  }
  .kpi {
    gap: 7px;
    padding: 8px;
  }
  .kpi-icon {
    width: 35px;
    height: 35px;
  }
  .kpi-value {
    font-size: 22px;
  }
}

@media(min-width:1500px) {
  .card {
    padding: 16px;
  }
  .kpi {
    min-height: 87px;
  }
  .hero {
    min-height: 120px;
  }
}

@media(max-width:1020px) {
  .dashboard {
    grid-template-columns: minmax(0,1fr);
  }
  .dashboard-main {
    grid-row: 1;
  }
  .dashboard-side {
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
  }
  .dash-pair {
    grid-template-columns: minmax(0,1.2fr) minmax(222px,1fr);
  }
  .kpi {
    min-height: 67px;
  }
}

@media(max-width:790px) {
  .circle-button {
    width: 34px;
    height: 34px;
  }
  .hero {
    min-height: 88px;
  }
  .dashboard,.dash-pair,.dashboard-main,.dashboard-side {
    gap: 8px;
  }
  .card {
    padding: 11px;
  }
  .page-top {
    align-items: flex-start;
  }
  .page-top h1 {
    font-size: 21px;
  }
  .page-top p {
    font-size: 12px;
  }
}

@media(max-width:530px) {
  .dash-pair,.dashboard-side,.grid-two {
    grid-template-columns: minmax(0,1fr);
  }
  .kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  .kpi {
    min-height: 62px;
    padding: 6px 8px;
  }
  .kpi-value {
    font-size: 22px;
  }
  .page-top {
    flex-wrap: wrap;
  }
  .page-top .actions {
    justify-content: flex-start;
  }
  .table {
    font-size: 12px;
  }
  .table th,.table td {
    padding: 6px 7px;
  }
  .chart {
    height: 175px;
  }
  .access-card {
    padding: 16px;
  }
  .form-grid {
    gap: 9px;
  }
  .filter-form label {
    min-width: 95px;
    flex: 1;
  }
  .filter-form input,.filter-form select {
    max-width: none;
  }
  .scan-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  .qr-body,.qr-body * {
    visibility: visible;
  }
  .qr-body {
    position: absolute;
    inset: 20mm 0 auto;
  }
  .qr-body .actions,.qr-body .actions * {
    visibility: hidden;
  }
}

[hidden] {
  display: none!important;
}

.dashboard-dept {
  margin: 0 0 6px;
}

.rule-version {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.rule-version:last-child {
  border-bottom: 0;
}

.rule-version summary {
  cursor: pointer;
  font-weight: 650;
}

.rule-version .details-list {
  margin-top: 8px;
}

.qr-body:fullscreen {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  background: #fff;
  padding: 15px;
}

.qr-body:fullscreen img {
  width: min(50vmin,90%);
}
