:root {
  --navy: #172741;
  --navy2: #223858;
  --orange: #ed5f2b;
  --orange2: #fff0e9;
  --ink: #182235;
  --muted: #68768b;
  --bg: #f4f6f9;
  --line: #dfe5ec;
  --green: #14865e;
  --green2: #e7f7f0;
  --yellow: #966700;
  --yellow2: #fff5d7;
  --red: #b83c44;
  --red2: #fdeced;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid rgba(237, 95, 43, 0.28);
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 4px;
}
h2 {
  font-size: 17px;
  margin-bottom: 2px;
}
p {
  color: var(--muted);
}
small {
  color: var(--orange);
  font-weight: 800;
}
.skip {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 9px;
}
.skip:focus {
  transform: none;
}
.logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 7px;
}
.btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}
.btn:hover {
  border-color: #aeb9c7;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.primary:hover {
  background: #d65122;
}
.full {
  width: 100%;
}
.link {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  padding: 5px;
}
.actions {
  display: flex;
  gap: 8px;
}
.error {
  min-height: 20px;
  color: var(--red);
  font-size: 12px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px minmax(440px, 1fr);
  background: var(--navy);
}
.login-brand {
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #fff;
}
.login-brand strong,
.login-brand span {
  display: block;
}
.login-brand span {
  font-size: 12px;
  color: #adbbce;
}
.login-form {
  min-height: 100vh;
  max-width: 620px;
  padding: min(15vh, 150px) clamp(32px, 8vw, 110px) 50px;
  background: #fff;
}
.login-form > p {
  margin-bottom: 30px;
}
.login-form label,
.drawer label,
.settings label {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 700;
  color: #47566c;
}
.login-form input,
.drawer input,
.drawer select,
.settings input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.password {
  position: relative;
}
.password input {
  padding-right: 65px;
}
.password button {
  position: absolute;
  right: 0;
  top: 0;
  width: 62px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.login-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--muted);
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}
.login-form > .link {
  display: block;
  margin: 13px auto;
}
.app {
  min-height: 100vh;
}
aside#sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: 230px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
}
#sidebar header {
  min-height: 74px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ffffff17;
}
#sidebar header .logo {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
#sidebar header strong,
#sidebar header span {
  display: block;
}
#sidebar header span {
  font-size: 10px;
  color: #adbbce;
}
#close-nav {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
}
nav {
  padding: 17px 11px;
  display: grid;
  gap: 5px;
}
nav button {
  height: 45px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b8c5d7;
  text-align: left;
}
nav button:hover,
nav button.active {
  background: #ffffff12;
  color: #fff;
}
nav button.active {
  background: var(--orange);
}
nav i {
  float: right;
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #ffffff1a;
  font-size: 10px;
  text-align: center;
  font-style: normal;
}
#sidebar footer {
  margin-top: auto;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #ffffff17;
}
#avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange2);
  color: var(--orange);
}
#sidebar footer div {
  min-width: 0;
  flex: 1;
}
#sidebar footer strong,
#sidebar footer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sidebar footer span {
  color: #9facbf;
  font-size: 10px;
}
#logout {
  border: 0;
  background: transparent;
  color: #b8c5d7;
}
.workspace {
  margin-left: 230px;
  min-height: 100vh;
}
.top {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 62px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.top > div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.top em {
  color: var(--green);
  font-style: normal;
}
.top button {
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
#open-nav {
  display: none;
  font-size: 20px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 28px;
}
.page {
  display: none;
}
.page.active {
  display: block;
  animation: in 0.2s ease-out;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.heading {
  min-height: 70px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.heading p {
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.metric {
  min-height: 120px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric span,
.metric small {
  color: var(--muted);
  font-weight: 400;
}
.metric b {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.panel,
.table-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.panel {
  padding: 19px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
.panel-head p {
  margin: 0;
  font-size: 11px;
}
.progress-track {
  height: 10px;
  overflow: hidden;
  background: #edf0f4;
  border-radius: 5px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--orange);
}
.progress-copy {
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.bars {
  display: grid;
  gap: 9px;
}
.bar {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.bar i {
  height: 6px;
  background: #edf0f4;
  border-radius: 4px;
  overflow: hidden;
}
.bar i:after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--navy2);
}
.recent {
  min-height: 55px;
  display: grid;
  grid-template-columns: 1fr 140px 100px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
}
.recent:first-child {
  border: 0;
}
.recent small {
  color: var(--muted);
  font-weight: 400;
}
.filters {
  margin-bottom: 12px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filters select {
  height: 42px;
  min-width: 130px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.search {
  position: relative;
  display: block;
  width: min(330px, 100%);
  color: var(--muted);
}
.search input {
  width: 100%;
  height: 42px;
  padding: 0 11px 0 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.search:first-letter {
  font-size: 21px;
}
.search {
  font-size: 0;
}
.search:before {
  content: "⌕";
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 7px;
  font-size: 20px;
}
.table-note {
  height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.table-note b {
  color: var(--ink);
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}
th {
  height: 43px;
  padding: 0 13px;
  background: #f7f8fa;
  color: #536176;
  font-size: 11px;
  text-align: left;
}
td {
  height: 67px;
  padding: 8px 13px;
  border-top: 1px solid #edf0f4;
}
.exercise-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}
.thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #eef1f4;
  border-radius: 6px;
}
.exercise-cell b,
.exercise-cell code {
  display: block;
}
.exercise-cell code {
  max-width: 220px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag,
.badge {
  display: inline-block;
  margin: 2px;
  padding: 3px 7px;
  border-radius: 10px;
  background: var(--orange2);
  color: #b84920;
  font-size: 10px;
  font-weight: 700;
}
.badge.green {
  background: var(--green2);
  color: var(--green);
}
.badge.yellow {
  background: var(--yellow2);
  color: var(--yellow);
}
.badge.red {
  background: var(--red2);
  color: var(--red);
}
.badge.gray {
  background: #edf0f4;
  color: #5e6a79;
}
.row-actions {
  text-align: right;
}
.row-actions button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
}
.pagination {
  min-height: 54px;
  padding: 8px 13px;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  border-top: 1px solid var(--line);
}
.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.pagination .active {
  background: var(--navy);
  color: #fff;
}
.review-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.summary {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.summary b {
  font-size: 18px;
  color: var(--ink);
}
.segments {
  margin-left: auto;
  padding: 3px;
  display: flex;
  background: #edf0f4;
  border-radius: 6px;
}
.segments button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.segments .active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
.review-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.review-media {
  height: 205px;
  position: relative;
  background: #edf0f4;
}
.review-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.review-media .badge {
  position: absolute;
  top: 8px;
}
.review-media .badge:first-of-type {
  left: 8px;
}
.review-media .badge:last-of-type {
  right: 8px;
}
.review-body {
  padding: 13px;
}
.review-body h2 {
  margin-bottom: 1px;
  font-size: 15px;
}
.review-id {
  font:
    10px ui-monospace,
    Consolas;
  color: var(--muted);
}
.compare {
  margin: 11px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 5px 8px;
  font-size: 11px;
}
.compare span {
  color: var(--muted);
}
.compare b {
  overflow-wrap: anywhere;
}
.compare small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.decision-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.decision-actions .selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.decision-actions [data-decision="replace"].selected {
  background: var(--orange);
  border-color: var(--orange);
}
.decision-actions [data-decision="missing"].selected {
  background: var(--red);
  border-color: var(--red);
}
.decision-actions [data-decision="license_pending"].selected {
  background: var(--yellow);
  border-color: var(--yellow);
}
.review-note {
  width: 100%;
  min-height: 60px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  resize: vertical;
  font-size: 11px;
}
.decision-line {
  min-height: 34px;
  margin-top: 7px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7f9;
  color: var(--muted);
  font-size: 10px;
}
.more {
  text-align: center;
  padding-top: 16px;
}
.empty {
  grid-column: 1/-1;
  min-height: 190px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px dashed #bec8d4;
  border-radius: 8px;
  color: var(--muted);
}
.equipment-search {
  margin-bottom: 12px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 11px;
}
.equipment-card {
  min-height: 135px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.equipment-card > div {
  display: flex;
  justify-content: space-between;
}
.equipment-card h2 {
  font-size: 15px;
}
.equipment-card code {
  color: var(--muted);
  font-size: 10px;
}
.equipment-card > strong {
  font-size: 25px;
}
.equipment-card button {
  margin: auto -5px -5px auto;
}
.settings {
  max-width: 720px;
}
.settings .actions {
  justify-content: flex-end;
}
.connection-card {
  margin-top: 20px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f6f7f9;
  border-radius: 6px;
}
.connection-card i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a5afba;
}
.connection-card.success i {
  background: var(--green);
}
.connection-card.error i {
  background: var(--red);
}
.connection-card p {
  margin: 0;
  font-size: 11px;
}
.backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: #0d1726aa;
}
.drawer {
  position: fixed;
  z-index: 100;
  inset: 0 0 0 auto;
  width: min(620px, 100%);
  overflow: auto;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.2s;
  box-shadow: -10px 0 30px #0d172630;
}
.drawer.open {
  transform: none;
}
.drawer > header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 74px;
  padding: 15px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.drawer header h2 {
  margin: 3px 0 0;
}
.drawer header button {
  border: 0;
  background: transparent;
  font-size: 25px;
}
.drawer form {
  padding: 21px;
}
.drawer fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.drawer legend {
  width: 100%;
  margin-bottom: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.drawer label small {
  color: var(--muted);
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 13px;
}
.wide {
  grid-column: 1/-1;
}
.drawer .switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.drawer form > footer {
  position: sticky;
  bottom: 0;
  margin: 8px -21px -21px;
  padding: 13px 21px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.toasts {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 7px;
}
.toast {
  min-width: 250px;
  max-width: 350px;
  padding: 11px 13px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px #0d17262b;
}
.toast.error {
  background: #8c3037;
}
.feedback-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.feedback-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feedback-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.feedback-card time {
  color: var(--muted);
  font-size: 10px;
}
.feedback-content {
  min-height: 74px;
  margin: 13px 0;
  padding: 12px;
  border-radius: 6px;
  background: #f7f8fa;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-card dl {
  margin: 0 0 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 15px;
}
.feedback-card dl div {
  min-width: 0;
}
.feedback-card dt {
  color: var(--muted);
  font-size: 10px;
}
.feedback-card dd {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.feedback-handle {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.feedback-handle label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  color: #536176;
  font-size: 11px;
  font-weight: 700;
}
.feedback-handle select,
.feedback-handle textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.feedback-handle select {
  height: 39px;
}
.feedback-handle textarea {
  min-height: 70px;
  resize: vertical;
}
.feedback-handle button {
  width: 100%;
}
@media (max-width: 1000px) {
  .metrics,
  .review-summary,
  .feedback-summary {
    grid-template-columns: 1fr 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .login {
    grid-template-columns: 1fr;
    background: #fff;
  }
  .login-brand {
    min-height: 112px;
    padding: 24px;
  }
  .login-form {
    min-height: auto;
    padding: 34px 22px;
  }
  aside#sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  aside#sidebar.open {
    transform: none;
  }
  #close-nav,
  #open-nav {
    display: block;
  }
  .workspace {
    margin-left: 0;
  }
  .top {
    height: 58px;
    padding: 0 12px;
  }
  main {
    padding: 19px 13px;
  }
  .heading {
    display: block;
  }
  .heading > .btn,
  .heading > .actions {
    margin-top: 13px;
  }
  .filters {
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .filters select,
  .filters > .btn {
    flex: 1;
  }
  .segments {
    width: 100%;
    margin-left: 0;
  }
  .segments button {
    flex: 1;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .feedback-grid {
    grid-template-columns: 1fr;
  }
  .review-media {
    height: 250px;
  }
  .recent {
    grid-template-columns: 1fr auto;
  }
  .recent > :last-child {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
}
@media (max-width: 430px) {
  h1 {
    font-size: 23px;
  }
  .metrics,
  .review-summary,
  .feedback-summary {
    grid-template-columns: 1fr;
  }
  .feedback-card dl {
    grid-template-columns: 1fr;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .toast {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
