:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #233448;
  background: #f4f6f9;
  font-size: 14px;
  --accent: #365e83;
  --line: #dfe5ec;
  --muted: #64758a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: #2b4057;
  border-radius: 7px;
  padding: 9px 14px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: #edf2f7;
}
button.primary {
  background: #365e83;
  border-color: #365e83;
  color: white;
}
button.primary:hover {
  background: #294d6e;
}
button.danger {
  color: #a52e3a;
  border-color: #e6bac1;
}
button.quiet {
  border: 0;
  background: transparent;
  padding: 7px 9px;
}
button.small {
  padding: 6px 10px;
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100dvh;
}
.sidebar {
  background: #182b40;
  color: #c2cedb;
  display: flex;
  flex-direction: column;
  padding: 27px 18px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  letter-spacing: -0.7px;
  color: white;
  font-weight: 700;
}
.brand-symbol {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #dce7f0;
  color: #203c57;
  border-radius: 8px;
  font-size: 21px;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #9cb0c5;
  margin: 4px 0 0 44px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 38px 13px 12px;
  color: #8399af;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #b6c7d8;
  padding: 12px;
  border-radius: 7px;
  font-weight: 500;
}
.sidebar nav a.active {
  color: white;
  background: #304a63;
}
.sidebar nav a:hover {
  background: #263e56;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-footer {
  margin-top: auto;
  padding: 23px 12px 0;
  border-top: 1px solid #304256;
  font-size: 11px;
  line-height: 1.7;
  color: #9db1c5;
  overflow-wrap: anywhere;
}
.sidebar-footer strong {
  display: block;
  color: #cdd8e3;
  font-weight: 500;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 74px;
  padding: 0 38px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.account {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e9eff5;
  color: #365e83;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-weight: 700;
}
.account span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 34px 38px 60px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0 0 8px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.6;
}
p.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #698098;
  margin-bottom: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 27px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-number {
  font-size: 29px;
  letter-spacing: -1px;
  margin-top: 16px;
  line-height: 1;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search input {
  width: 100%;
}
.toolbar input {
  height: 37px;
}
.toolbar .filter {
  width: 155px;
}
input {
  border: 1px solid #cbd5e0;
  background: white;
  border-radius: 6px;
  padding: 9px 11px;
  width: 100%;
  color: #20354c;
  min-width: 0;
}
input:focus {
  outline: 2px solid #a6bfd6;
  border-color: #648bab;
}
input[readonly] {
  background: #f4f6f9;
  color: #61768c;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #6a7b8e;
  background: #f9fafc;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfe;
}
.tenant-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.tenant-avatar {
  width: 35px;
  height: 35px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #526e87;
  font-size: 12px;
}
.cell-sub {
  font-size: 11px;
  font-weight: 400;
  color: #7b8999;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2f6;
  color: #556d83;
  border: 1px solid #e0e6ed;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
}
.badge.good {
  background: #edf7f1;
  color: #2a7253;
  border-color: #d9ebdf;
}
.badge.warn {
  background: #fff6e7;
  color: #8c6526;
  border-color: #efdfc2;
}
.badge.bad {
  background: #fff0f0;
  color: #a34f56;
  border-color: #f0d4d7;
}
.bad-text {
  color: #a34f56;
}
.muted {
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 57px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #e0e7ee;
  border-radius: 13px;
  background: #f6f9fc;
  margin: 0 auto 17px;
  color: #7291ad;
}
.empty h3 {
  color: #344f69;
  margin-bottom: 8px;
  font-size: 15px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  overflow: auto;
  white-space: nowrap;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 13px 17px;
  background: none;
  font-size: 13px;
  font-weight: 500;
}
.tabs button.active {
  border-bottom-color: #365e83;
  color: #365e83;
}
.detail-strip {
  display: flex;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  padding: 19px 22px;
  border-radius: 9px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.detail-strip .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-strip .value {
  font-size: 13px;
}
.detail-strip .push {
  margin-left: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.card-title {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 7px;
}
.card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 24px 0;
  font-size: 12px;
}
.card dt {
  color: var(--muted);
}
.card dd {
  margin: 0;
  text-align: right;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 11px;
  color: var(--muted);
}
.features {
  display: grid;
  gap: 11px;
  margin: 20px 0;
  font-size: 13px;
}
.features span {
  color: #4a6178;
}
.feature-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #dce7ef;
  background: #eff5fa;
  color: #49647d;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error {
  padding: 12px 14px;
  color: #993b48;
  background: #fff0f2;
  border: 1px solid #edced4;
  border-radius: 6px;
  font-size: 13px;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: 570px;
  max-width: calc(100vw - 26px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 20px 90px #132b4855;
  color: #24394e;
}
dialog::backdrop {
  background: #11273c77;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-body {
  padding: 22px 24px;
  max-height: calc(100dvh - 220px);
  overflow: auto;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 17px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fbfcfd;
}
.field {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 550;
}
.field input {
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
.field small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.checks {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 17px;
}
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.check-row:last-child {
  border: 0;
}
.check-row label {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
}
.check-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #365e83;
}
.check-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-art {
  background: #182b40;
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 44px;
  line-height: 1.2;
  max-width: 480px;
  letter-spacing: -1.6px;
}
.login-art p {
  color: #a3b7cb;
  font-size: 15px;
  max-width: 430px;
}
.login-art footer {
  color: #91a9bf;
  font-size: 12px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form form {
  width: 350px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.login-form p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-form button {
  width: 100%;
  margin-top: 9px;
}
.readonly {
  padding: 11px 16px;
  border-radius: 6px;
  background: #fff8e9;
  color: #8c6b30;
  font-size: 12px;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 14px 20px;
  border-radius: 9px;
  background: #234d40;
  color: white;
  box-shadow: 0 6px 25px #19384933;
  z-index: 20;
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-menu {
  display: none;
}
.package-limit {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.package-limit strong {
  font-size: 21px;
  font-weight: 600;
}
.package-limit span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.stack {
  display: grid;
  gap: 18px;
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-align: left;
  font-weight: 600;
}
.link-button:hover {
  text-decoration: underline;
}
.small-code {
  font-size: 11px;
  word-break: break-all;
  white-space: normal;
  color: #718197;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 10px;
}
.preview-only {
  padding: 9px 16px;
  background: #fff5df;
  color: #866528;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
  main {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .check-row {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    width: 235px;
    z-index: 10;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 5px 0 50px #142c4566;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .heading {
    align-items: start;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 24px;
  }
  .heading .row-actions {
    flex-direction: column;
    align-items: end;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-number {
    font-size: 25px;
  }
  .toolbar {
    padding: 14px;
    gap: 8px;
  }
  .toolbar .filter {
    flex: 1;
    min-width: 110px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  th,
  td {
    padding: 13px 16px;
  }
  .account {
    gap: 6px;
  }
  .account span {
    max-width: 100px;
  }
  .detail-strip {
    gap: 17px;
  }
  .detail-strip .push {
    margin-left: 0;
  }
  .tabs button {
    padding: 12px 13px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 27px;
    min-height: 210px;
  }
  .login-art h1 {
    font-size: 26px;
    margin-top: 28px;
  }
  .login-art p,
  .login-art footer {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
  }
  .dialog-body {
    padding: 20px;
  }
  .check-row {
    align-items: start;
  }
  .check-actions {
    gap: 12px;
  }
  .panel-head {
    padding: 17px;
  }
  .pagination {
    padding: 14px;
    gap: 10px;
  }
  .small-code {
    max-width: 220px;
  }
}
