.desk {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f5f8;
  color: #191628;
  --purple: #622cb0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.desk aside {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  background: #191326;
  color: #ffffff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.desk aside .wordmark {
  align-self: start;
  margin-left: 10px;
}
.desk-label {
  font-size: 13px;
  color: #dac2ff;
  letter-spacing: 0.12em;
  margin: 8px 10px 38px;
  font-weight: 750;
  text-transform: uppercase;
}
.desk nav {
  display: grid;
  gap: 8px;
}
.desk nav a, .back, .switch-full {
  border-radius: 12px;
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: center;
  transition: background 0.15s ease;
}
.desk nav a[aria-current] {
  background: rgba(255, 255, 255, 0.125);
  color: #ffffff;
}
.desk nav a:hover {
  background: rgba(255, 255, 255, 0.075);
}
.desk i {
  font-style: normal;
  display: inline-block;
  width: 29px;
  color: #d6b7ff;
}
.back {
  margin-top: auto;
  color: #dfd3ed;
  font-size: 14px;
}
.switch-full {
  margin-top: 10px;
  background: #ff0033;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}
.switch-full:hover {
  filter: brightness(1.15);
}
.desk header {
  min-height: 70px;
  padding: 12px 34px;
  border-bottom: 1px solid #e7e2ec;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
}
.desk header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.preview {
  font-size: 13px;
  background: #f0e8fb;
  color: #582798;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9dafa;
  color: #552792;
  font-weight: 800;
  font-size: 14px;
}
.desk main {
  width: min(1280px, 100%);
  margin: auto;
  padding: 31px 34px;
}
.desk-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow, .revenue p {
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  color: #625b70;
  text-transform: uppercase;
}
.desk h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.07em;
  margin-top: 8px;
  font-weight: 900;
}
.desk h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.desk-button {
  border: 0;
  border-radius: 11px;
  background: var(--purple);
  color: #ffffff;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.desk-button:hover {
  filter: brightness(1.13);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.metrics article, .panel, .session {
  background: #ffffff;
  border: 1px solid #e7e0ed;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(42, 24, 51, 0.024);
}
.metrics span {
  color: #625b70;
  font-size: 14px;
  font-weight: 650;
}
.metrics strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.06em;
  margin-top: 9px;
  font-weight: 900;
}
.revenue {
  margin-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(115deg, #241539, #422263);
  border: 1px solid #c3974a;
  border-radius: 18px;
  color: #ffffff;
}
.revenue p, .revenue span {
  color: #e5d3f5;
}
.revenue strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 3px 0;
  font-weight: 900;
}
.revenue .desk-button {
  background: #efce78;
  color: #261836;
  font-weight: 800;
}
.desk-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}
.session {
  background: #faf3f8;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 12px;
}
.session h2 {
  color: #861740;
  font-size: 30px;
}
.session .desk-button {
  background: #971747;
  margin-top: auto;
}
.muted, .renewal span, .desk-row span {
  color: #665e72;
}
.renewal, .desk-row {
  padding: 13px 0;
  border-bottom: 1px solid #ece7ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.desk-row > * {
  flex: 1;
}
.desk-row .desk-button {
  flex: 0 0 auto;
}
.table-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--purple);
  font-weight: 700;
}
.desk input {
  display: block;
  padding: 11px 14px;
  border: 1px solid #d7cde3;
  border-radius: 10px;
  margin: 9px 0 18px;
  width: min(100%, 340px);
}
.desk dialog {
  border: 1px solid #ece3f4;
  border-radius: 18px;
  padding: 25px;
  width: min(440px, calc(100% - 30px));
  color: inherit;
}
.desk dialog::backdrop {
  background: rgba(28, 16, 45, 0.52);
}
.desk dialog form {
  float: right;
}
.desk dialog form button {
  border: 0;
  background: #f0e8fb;
  font-size: 22px;
  border-radius: 7px;
  width: 32px;
  height: 32px;
}
.desk dialog p {
  margin: 10px 0;
  color: #443e4f;
  line-height: 1.5;
}
.desk [hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .desk { grid-template-columns: 170px minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .desk main, .desk header { padding-inline: 19px; }
  .desk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .desk { display: block; }
  .desk aside { position: static; min-height: 0; padding: 12px; gap: 6px; }
  .desk-label { display: none; }
  .desk nav { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .desk nav a { padding: 8px 4px; font-size: 13px; text-align: center; }
  .desk i { display: none; }
  .back { padding: 5px 10px; font-size: 13px; }
  .desk main, .desk header { padding-inline: 14px; }
  .metrics article, .panel, .session, .revenue { padding: 14px; }
  .desk-row { flex-wrap: wrap; }
  .desk-row > * { flex: auto; }
}
