:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1b2b32;
  background: #f5f7f8;
  font-size: 14px;
  --green: #087d68;
  --line: #e2e8eb;
  --muted: #718087;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 600;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:hover {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  margin: 0;
}
h3 {
  font-size: 17px;
}
small {
  display: block;
}
.muted,
.help {
  color: var(--muted);
  line-height: 1.8;
}
.help {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #718087;
  margin-bottom: 14px;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: #354951;
}
.text-button {
  background: none;
  color: inherit;
  padding: 8px 0;
}
.error {
  color: #b33333;
  white-space: pre-wrap;
}
.brand-symbol {
  display: inline-grid;
  place-items: center;
  background: #15ac8c;
  color: white;
  font-size: 27px;
  border-radius: 10px;
  width: 42px;
  height: 42px;
}
aside {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #112b32;
  color: #d0dfe1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 49px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94aeb2;
  margin-top: 6px;
}
.nav-label {
  font-size: 11px;
  color: #7d9a9f;
  padding-left: 15px;
  margin-bottom: 15px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  color: #94b0b4;
  background: transparent;
  padding: 13px 16px;
  font-size: 17px;
}
nav button span {
  font-size: 14px;
  margin-left: 12px;
}
nav button.active {
  background: #22464b;
  color: #adf4d9;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 12px 0;
  border-top: 1px solid #2a4349;
  font-size: 12px;
  color: #8ba5a9;
}
.sidebar-bottom p {
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66dcb7;
  margin-right: 5px;
}
main {
  margin-left: 228px;
  max-width: 1700px;
  padding: 40px 46px;
}
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 24px;
}
.stat p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat strong {
  font-size: 29px;
  font-weight: 600;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  gap: 16px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 22px;
}
.product-card,
.record {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.product-card h3 {
  margin: 20px 0 5px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-icon {
  background: #e9f5f0;
  color: var(--green);
  border-radius: 10px;
  font-size: 20px;
  padding: 12px;
}
.badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-block;
  background: #edf2f4;
  color: #61777c;
}
.badge.ok {
  background: #e8f5ee;
  color: #1a7d56;
}
.badge.warn {
  background: #fff1dc;
  color: #946013;
}
.badge.bad {
  background: #fdecec;
  color: #ae4545;
}
.product-card .description {
  min-height: 45px;
  margin: 15px 0;
  color: #718087;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.repo {
  font-size: 12px;
  padding: 12px;
  background: #f7f9fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card .actions {
  margin-top: 20px;
}
.product-card .actions button {
  padding: 8px 11px;
  font-size: 12px;
}
.record {
  margin-bottom: 14px;
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.record h3 {
  margin: 0;
}
.record p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.record .meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 16px;
}
.empty {
  padding: 65px 24px;
  text-align: center;
  border: 1px dashed #cbd6db;
  border-radius: 10px;
  color: var(--muted);
  background: #fafcfc;
}
.empty strong {
  display: block;
  color: #435c66;
  font-size: 17px;
  margin-bottom: 12px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #425861;
  margin-bottom: 17px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d8e1e5;
  background: white;
  color: #233a42;
  border-radius: 6px;
  padding: 11px 12px;
  margin-top: 8px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #169d83;
  box-shadow: 0 0 0 3px #159e8211;
}
select {
  width: auto;
  min-width: 180px;
  margin: 0;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 30px);
  max-height: 90vh;
  box-shadow: 0 30px 90px #112b3226;
}
dialog::backdrop {
  background: #112b3266;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}
.icon-button {
  background: transparent;
  padding: 0 8px;
  font-size: 25px;
  color: #89999f;
}
.form-error {
  font-size: 12px;
  margin: 15px 0 0;
}
#notice {
  border-radius: 7px;
  background: #e7f5ed;
  color: #226342;
  padding: 13px 18px;
  margin-bottom: 24px;
}
#notice.bad {
  background: #fff0eb;
  color: #a44025;
}
pre {
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  max-height: 65vh;
  overflow: auto;
}
footer {
  margin-top: 60px;
  color: #99a6ac;
  font-size: 11px;
  text-align: center;
  letter-spacing: 1px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-card {
  width: 400px;
  max-width: 85%;
  margin: auto;
  padding: 50px 0;
}
.login-card .brand-symbol {
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 35px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.login-card label {
  margin-top: 32px;
}
.login-card .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}
.login-card .help {
  margin-top: 20px;
}
.login-art {
  background: #112b32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a6d8cc;
  gap: 28px;
  padding: 50px;
}
.orbit {
  border: 1px solid #345d61;
  width: 280px;
  border-radius: 16px;
  padding: 25px 28px;
  font-size: 27px;
  color: #4e8f83;
  transform: rotate(-4deg);
}
.orbit:nth-child(2) {
  transform: rotate(3deg);
  margin-left: 65px;
}
.orbit span {
  font-size: 18px;
  color: #c3e6de;
  margin-left: 24px;
}
.login-art p {
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 2px;
}
@media (max-width: 950px) {
  main {
    padding: 30px 24px;
    margin-left: 190px;
  }
  aside {
    width: 190px;
    padding: 28px 14px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-art {
    display: none;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  aside {
    position: relative;
    width: 100%;
    padding: 18px;
  }
  aside .brand {
    margin: 0 0 15px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 2px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
    font-size: 0;
  }
  nav button span {
    margin: 0;
    font-size: 12px;
  }
  main {
    margin: 0;
    padding: 25px 18px;
  }
  h1 {
    font-size: 24px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .record-head {
    align-items: flex-start;
  }
  .section-heading .actions {
    gap: 6px;
  }
}
