:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202c43;
  background: #f5f7fb;
  font-synthesis: none;
  font-size: 14px;
  --blue: #4166ee;
  --muted: #8691a6;
  --line: #eaf0f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-color: var(--blue);
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--blue);
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 34px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 35px;
}
.brand-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 5px 13px #4166ee25;
}
.brand strong {
  font-size: 23px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.9px;
  margin-top: 2px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a4adbd;
  padding: 12px 16px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 9px;
  color: #718096;
  font-size: 13px;
}
.nav button:hover {
  background: #f6f8fc;
}
.nav button.active {
  background: #edf1ff;
  color: var(--blue);
  font-weight: 650;
}
.nav button.active:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.sidebar-bottom {
  margin-top: auto;
}
.system-note {
  margin: 30px 8px 20px;
  padding: 15px;
  background: #f8faff;
  border: 1px solid #edf1fa;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.9;
  color: #8090aa;
}
.system-note strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #53657e;
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23b18a;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #edf1ff;
  color: #526adc;
  border-radius: 50%;
  font-weight: 600;
}
.profile small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.profile button {
  margin-left: auto;
  color: #98a4b9;
}
.main {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #98a3b5;
}
.topbar strong {
  font-weight: 500;
  color: #4d5d75;
}
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar .right span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.topbar svg {
  width: 17px;
  height: 17px;
}
.content {
  max-width: 1640px;
  margin: auto;
  padding: 36px 40px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9aa7bb;
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.subtitle {
  font-size: 12px;
  line-height: 1.9;
  color: #8896ac;
  margin-top: 9px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e3e9f2;
  background: white;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 9px #4166ee12;
}
.btn.danger {
  color: #d55c63;
  border-color: #f4dce0;
}
.btn:hover {
  filter: brightness(0.97);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 23px;
  position: relative;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8390a5;
  font-size: 12px;
}
.stat-icon {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #5774e9;
}
.stat:nth-child(2) .stat-icon {
  background: #eaf8f4;
  color: #32af95;
}
.stat:nth-child(3) .stat-icon {
  background: #f3efff;
  color: #9371d6;
}
.stat:nth-child(4) .stat-icon {
  background: #fff5e9;
  color: #d2a14c;
}
.stat-number {
  font-size: 32px;
  font-weight: 650;
  margin: 9px 0 15px;
  letter-spacing: -1px;
}
.stat-footer {
  border-top: 1px solid #f1f4f8;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #95a0b1;
  font-size: 10px;
}
.stat-footer b {
  color: #42a58c;
  font-weight: 500;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel .panel {
  margin: 0;
}
.dashboard-grid > .panel {
  margin: 0;
}
.panel-head {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f4f9;
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 600;
}
.panel-head p {
  font-size: 10px;
  color: #99a4b5;
  margin-top: 6px;
}
.panel-head a,
.text-btn {
  font-size: 11px;
  color: var(--blue);
  padding: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #eff8f4;
  color: #35a580;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.pill:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.pill.gray {
  background: #f1f4f8;
  color: #8995a8;
}
.pill.red {
  background: #fff0f0;
  color: #d77a7a;
}
.pill.blue {
  background: #edf2ff;
  color: #6583dd;
}
.pill.purple {
  background: #f3efff;
  color: #8e70c8;
}
.overview-chart {
  padding: 20px 25px 16px;
}
.chart-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #8a97ab;
  margin-bottom: 20px;
}
.legend-line {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #6681ee;
  margin-right: 6px;
}
.legend-line.mint {
  background: #87cdb7;
}
.bars {
  height: 145px;
  border-bottom: 1px solid #ebeff6;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 15px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 35px,
    #f3f5f9 35px,
    #f3f5f9 36px
  );
  padding: 0 15px;
}
.bar-column {
  flex: 1;
  max-width: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
}
.bar-column i {
  display: block;
  min-height: 2px;
  width: 21px;
  border-radius: 4px 4px 0 0;
  background: #6380ed;
}
.bar-column i.mint {
  background: #91d6be;
}
.bar-labels {
  display: flex;
  justify-content: space-around;
  padding: 12px 15px 0;
  color: #94a1b6;
  font-size: 10px;
  gap: 15px;
}
.bar-labels span {
  flex: 1;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}
.topology {
  padding: 25px 24px 22px;
}
.topology-root {
  border: 1px solid #dce4ff;
  background: #f6f8ff;
  border-radius: 8px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #5774d4;
}
.topology-line {
  height: 20px;
  width: 1px;
  background: #e0e6f1;
  margin-left: 23px;
}
.topology-nodes {
  display: flex;
  gap: 9px;
}
.topology-node {
  flex: 1;
  border: 1px solid #e6edf6;
  border-radius: 7px;
  padding: 11px;
  text-align: center;
  font-size: 11px;
}
.topology-node small {
  display: block;
  font-size: 9px;
  color: #9da8b9;
  margin-top: 7px;
}
.topology-foot {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: #97a3b5;
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.topology-foot svg {
  width: 14px;
  height: 14px;
}
.toolbar {
  display: flex;
  padding: 18px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.search {
  position: relative;
  max-width: 290px;
  flex: 1;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 15px;
  height: 15px;
  color: #a1aec1;
}
.search input {
  padding-left: 35px;
  width: 100%;
}
.field,
input,
select,
textarea {
  border: 1px solid #e3e9f1;
  border-radius: 6px;
  background: #fff;
  padding: 9px 11px;
  color: #53637b;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #a2adbd;
}
select {
  max-width: 240px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.3px;
  background: #fafbfd;
  color: #939fb2;
  font-weight: 500;
  padding: 13px 22px;
}
td {
  font-size: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid #f1f4f8;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  font-size: 10px;
  color: #a0abba;
  margin-top: 6px;
}
td strong {
  font-weight: 550;
}
.table-wrap {
  overflow: auto;
}
.instance-name {
  display: flex;
  gap: 11px;
  align-items: center;
}
.game-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef1ff, #e1e8fd);
  color: #6d83d0;
}
.game-icon svg {
  width: 18px;
  height: 18px;
}
.table-actions {
  display: flex;
  gap: 5px;
}
.table-actions button,
.table-actions a {
  font-size: 11px;
  color: #6d83bb;
  padding: 4px 7px;
}
.table-footer {
  padding: 14px 23px;
  color: #a1acbd;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.activity {
  padding: 6px 24px 12px;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid #f4f6fa;
  font-size: 11px;
}
.activity-row:last-child {
  border: 0;
}
.activity-dot {
  height: 26px;
  width: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f4ff;
  color: #8c9dd2;
}
.activity-dot svg {
  width: 12px;
  height: 12px;
}
.activity-row p {
  color: #56667f;
}
.activity-row small {
  display: block;
  color: #9aa7b9;
  font-size: 10px;
  margin-top: 5px;
}
.activity-row time {
  font-size: 9px;
  color: #a5afbe;
  margin-left: auto;
  white-space: nowrap;
}
.quick-grid {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-card {
  border: 1px solid #edf0f7;
  background: #fff;
  border-radius: 8px;
  text-align: left;
  padding: 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-card svg {
  color: #7890da;
}
.quick-card small {
  display: block;
  color: #a2adc0;
  font-size: 10px;
  margin-top: 5px;
}
.empty {
  padding: 48px 25px;
  text-align: center;
  color: #95a1b5;
  font-size: 12px;
  line-height: 2;
}
.tenant-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tenant-card,
.template-card {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
}
.card-key {
  font-size: 10px;
  color: #99a6ba;
  margin-top: 7px;
  letter-spacing: 0.6px;
}
.card-description {
  font-size: 11px;
  line-height: 1.9;
  color: #8897ac;
  min-height: 45px;
  margin: 16px 0;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #94a0b1;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.card-art {
  height: 125px;
  background: linear-gradient(140deg, #f0f3ff, #e3eaff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #637cc6;
  margin-bottom: 22px;
}
.card-art svg {
  width: 45px;
  height: 45px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #dfe7fb;
  background: #f2f6ff;
  border-radius: 8px;
  color: #7286a8;
  font-size: 11px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
  padding: 23px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.resource-preview {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: repeating-conic-gradient(#f7f8fa 0% 25%, #fff 0% 50%) 50%/16px
    16px;
}
.resource-preview img {
  max-width: 90%;
  height: 100px;
  object-fit: contain;
}
.resource-info {
  padding: 12px;
}
.resource-info strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-info small {
  font-size: 10px;
  color: #9ca8b9;
  display: block;
  margin: 6px 0;
}
.resource-info button {
  font-size: 10px;
  color: var(--blue);
  padding: 3px 0;
}
.code {
  font:
    11px/1.8 Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f6f8fc;
  border-radius: 8px;
  padding: 18px;
  color: #677b9e;
  margin-top: 12px;
}
.api-section {
  padding: 25px;
}
.api-section h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.api-section p {
  font-size: 12px;
  line-height: 1.9;
  color: #8090a8;
}
.footer-note {
  text-align: center;
  margin-top: 28px;
  color: #b0b8c7;
  font-size: 10px;
  letter-spacing: 0.5px;
}
dialog {
  border: 1px solid #e7edf6;
  border-radius: 14px;
  padding: 0;
  width: 540px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  box-shadow: 0 25px 100px #15264b24;
  color: #273650;
}
dialog::backdrop {
  background: #17264055;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
}
.modal-head button {
  color: #99a4b6;
  font-size: 23px;
}
.modal-body {
  padding: 23px 26px;
}
.modal-body p {
  font-size: 12px;
  line-height: 1.9;
  color: #8594aa;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
.form-field {
  display: block;
  margin-bottom: 17px;
  font-size: 11px;
  color: #697a94;
}
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  font-size: 12px;
}
.form-field small {
  display: block;
  font-size: 10px;
  color: #9ba8ba;
  margin-top: 6px;
  line-height: 1.7;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.form-error {
  font-size: 11px;
  color: #c56666;
  margin: 12px 0;
  line-height: 1.8;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-art {
  background: linear-gradient(140deg, #eef3ff, #f8faff 65%, #eaf1fc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 420px;
  height: 420px;
  border: 80px solid #e4ebfb70;
  position: absolute;
  right: -180px;
  bottom: -150px;
  border-radius: 50%;
}
.login-art .brand {
  padding: 0;
  margin-bottom: 65px;
}
.login-art h1 {
  font-size: 37px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 2px;
}
.login-art p {
  color: #8294b1;
  font-size: 13px;
  line-height: 2.2;
  margin: 23px 0 35px;
}
.login-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.login-tags span {
  padding: 7px 12px;
  border: 1px solid #dce5f7;
  border-radius: 5px;
  color: #8193b3;
  font-size: 11px;
}
.login-form {
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 510px;
  width: 100%;
  margin: auto;
}
.login-form h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.login-form > p {
  color: #95a2b7;
  font-size: 12px;
  margin-bottom: 35px;
}
.login-form .form-field {
  margin-bottom: 22px;
}
.login-form input {
  padding: 13px;
}
.login-form .btn {
  padding: 13px;
  width: 100%;
  margin-top: 8px;
}
.login-form .fine {
  margin-top: 35px;
  text-align: center;
  font-size: 10px;
  color: #a8b3c3;
}
.initial {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #8b9bb7;
  font-size: 13px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  background: #23334e;
  color: white;
  box-shadow: 0 8px 30px #20325220;
  font-size: 12px;
  z-index: 100;
  max-width: 90vw;
}
.error-banner {
  background: #fff0f0;
  color: #bc6c6c;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}
.mobile-menu {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-list {
  padding: 8px 24px 20px;
}
.info-list div {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.info-list span {
  color: #96a2b4;
}
.info-list b {
  font-weight: 500;
}
.page-count {
  color: #94a2b8;
  font-size: 11px;
}
.metric-pair {
  display: flex;
  gap: 20px;
}
.metric-pair strong {
  font-size: 19px;
  font-weight: 600;
}
.metric-pair small {
  display: block;
  font-size: 10px;
  color: #a0acbd;
  margin-top: 5px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .stats {
    gap: 24px;
  }
  .stat {
    padding: 25px;
  }
  .overview-chart {
    padding-top: 26px;
  }
  .bars {
    height: 180px;
  }
}
@media (max-width: 1200px) {
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar {
    width: 210px;
    padding: 30px 14px;
  }
  .main {
    margin-left: 210px;
  }
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tenant-grid,
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .stat {
    padding: 18px;
  }
  .stat-number {
    font-size: 28px;
  }
}
@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    width: 190px;
  }
  .main {
    margin-left: 190px;
  }
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .topbar .right > span:first-child {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    width: 230px;
    box-shadow: 10px 0 30px #20325215;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .content {
    padding: 25px 16px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading {
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .actions {
    justify-content: flex-start;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-footer {
    font-size: 9px;
  }
  .tenant-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px;
    gap: 12px;
  }
  .toolbar {
    padding: 14px;
    flex-wrap: wrap;
  }
  .panel-head {
    padding: 18px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px;
  }
  .login-art .brand {
    margin-bottom: 25px;
  }
  .login-art h1 {
    font-size: 24px;
  }
  .login-art p,
  .login-tags {
    display: none;
  }
  .login-form {
    padding: 35px;
  }
  .topbar .right {
    gap: 9px;
  }
  .form-row {
    display: block;
  }
  .quick-grid {
    padding: 15px;
  }
  .modal-body {
    padding: 20px;
  }
  .page-count {
    display: none;
  }
}
.permission-matrix {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.permission-matrix th,
.permission-matrix td {
  padding: 11px 15px;
}
.permission-matrix input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.permission-caption {
  margin-top: 8px;
}
.profile > div {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.sidebar {
  overflow-y: auto;
}
.nav [hidden],
[hidden] {
  display: none !important;
}
