body {
  background: #f7f4fc;
  color: #291e3d;
}
.loginBox {
  max-width: 400px;
  margin: 14vh auto;
  padding: 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.loginBox img,
header img {
  width: 36px;
  border-radius: 10px;
  vertical-align: middle;
}
.loginBox h1 {
  font-size: 27px;
  margin: 15px 0;
}
.consoleTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 4vw;
  background: white;
  border-bottom: 1px solid var(--line);
}
.consoleTop b {
  margin-left: 9px;
}
.layout {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 26px;
  padding: 26px 4vw;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu button,
.ctl {
  border-radius: 9px;
  padding: 8px 12px;
  text-align: left;
}
.menu button.sel,
.ctl {
  background: var(--soft);
  color: var(--violet);
  font-weight: 650;
}
.stage {
  min-width: 0;
}
.stage h1 {
  margin: 5px 0 22px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}
.metric,
.table,
.box {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  padding: 18px;
}
.metric b {
  font-size: 30px;
  display: block;
}
.table {
  padding: 0;
  overflow: auto;
  margin: 14px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  max-width: 280px;
  overflow-wrap: anywhere;
}
th {
  background: #f2ebfa;
}
.ctl {
  margin: 2px;
}
.box {
  max-width: 620px;
}
label {
  display: block;
  font-weight: 600;
  margin: 12px 0 5px;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cdbedc;
}
.stage form {
  max-width: 520px;
}
.box .btn,
.loginBox .btn {
  margin-top: 14px;
}
#edit {
  padding: 22px;
  border: 0;
  border-radius: 18px;
  width: min(95vw, 480px);
}
#message {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #301448;
  color: white;
  border-radius: 18px;
  padding: 9px 16px;
  max-width: 90vw;
}
#message:empty {
  display: none;
}
@media (max-width: 760px) {
  .layout {
    display: block;
    padding: 14px;
  }
  .menu {
    flex-direction: row;
    overflow: auto;
    margin: 0 0 18px;
  }
  .menu button {
    white-space: nowrap;
  }
  .consoleTop small {
    display: none;
  }
}
