.frame:has(#desk:not([hidden])) {
  grid-template-columns: 230px minmax(0, 1fr);
  background: #f7f8fa;
}

.frame > aside:has(#rail:not([hidden])) {
  gap: 30px;
  padding: 28px 16px 18px;
  background: #fff;
  border-color: #e2e5ea;
  overflow-y: auto;
}

aside .brand { gap: 12px; }
aside .brand img { object-fit: contain; }
aside .brand small { font-size: 12px; letter-spacing: .04em; }

#rail { display: grid; gap: 20px; }
#rail .module-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px;
  color: #393e47;
  font-size: 14px;
  font-weight: 680;
}

.module-icon {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: none;
  color: #707883;
}

.content-icon { border: 1.6px solid; border-radius: 3px; }
.content-icon::before, .content-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  border-top: 1.6px solid;
}
.content-icon::after { top: 9px; right: 6px; }
.events-icon { margin-top: 2px; height: 15px; border: 1.6px solid; border-radius: 3px; }
.events-icon::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1.6px solid;
}
.events-icon::after {
  content: "";
  position: absolute;
  inset: -3px 3px auto;
  height: 4px;
  border-inline: 1.7px solid;
}
.users-icon::before, .users-icon::after { content: ""; position: absolute; border: 1.6px solid; }
.users-icon::before { inset: 0 5px 9px; border-radius: 50%; }
.users-icon::after { inset: 9px 1px 0; border-radius: 9px 9px 3px 3px; }
#rail .group-links { display: grid; gap: 2px; margin-top: 3px; }
#rail .group-links button { width: 100%; padding: 7px 12px 7px 37px; font-weight: 450; }
#rail .group-links button:hover, #rail .module-button:hover { background: #f2f3f5; }
#rail .group-links [aria-current] { background: #e9f2ff; color: #0059ad; font-weight: 650; }
#rail .application-nav { display: flex; align-items: center; justify-content: space-between; }
aside .foot { border-top: 1px solid #e7e9ed; padding-top: 14px; }
aside .foot > * { padding: 4px 0; }
.workspace-path { display: inline-flex; gap: 10px; align-items: center; }
.workspace-path b { font-weight: 500; color: #343a42; }
.workspace-path [aria-hidden] { color: #a8adb5; }
#desk .heading { margin: 27px 0 21px; }
#pageTitle { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
#pageTitle:focus { outline: 0; }
#desk .heading .hint { margin-top: 8px; }
.desk-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.desk-title-row > div { min-width: 0; overflow-wrap: anywhere; }
.desk-title-row > button { flex: none; }
#desk .event-tools {
  margin: 0 0 18px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
}
#desk .event-tools .field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  max-width: 560px;
}
#eventScopeLabel { flex: none; color: #535963; font-size: 13px; }
#eventSelect { overflow: hidden; text-overflow: ellipsis; }
#desk .panel, #desk .tile { border-color: #e0e3e8; border-radius: 14px; }
.event-back {
  margin: 22px 0 0;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #365a81;
  font: inherit;
  cursor: pointer;
}
#desk .event-back:not([hidden]) + .heading { margin-top: 10px; }
.event-sections {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 0;
  gap: 3px;
  border-bottom: 1px solid #dce1e7;
}
.event-sections button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 13px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #525e6e;
  cursor: pointer;
}
.event-sections button[aria-current] { border-color: #0960b5; color: #074e9c; font-weight: 650; }
.event-change-receipt { border-top: 1px solid #e2e5ea; padding: 12px 0; }
.event-change-receipt summary { cursor: pointer; font-weight: 600; }
.event-change-receipt summary small { margin-left: 8px; color: #586575; }
.event-change-receipt ul { margin: 7px 0 0; padding-left: 20px; }
.notice-change-value { margin: 12px 0; padding: 8px 12px; background: #f5f7fa; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 761px) and (max-width: 980px) {
  .frame:has(#desk:not([hidden])) { grid-template-columns: 188px minmax(0, 1fr); }
  .frame > aside:has(#rail:not([hidden])) { padding-inline: 10px; }
}

@media (max-width: 760px) {
  .event-sections { gap: 2px; }
  .event-sections button { padding: 8px 5px; font-size: 13px; }
  .frame:has(#desk:not([hidden])) { display: block; }
  .frame > aside:has(#rail:not([hidden])) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    position: static;
    height: auto;
    gap: 13px;
    padding: 13px 15px 9px;
    border: 0;
    border-bottom: 1px solid #e2e5ea;
    overflow: visible;
  }
  aside .brand { padding: 0; gap: 7px; font-size: 16px; }
  aside .brand img { width: 27px; height: 27px; }
  aside .brand small { display: none; }
  aside .foot {
    display: flex;
    align-items: center;
    grid-row: 1;
    grid-column: 2;
    gap: 12px;
    border: 0;
    padding: 0;
    font-size: 12px;
  }
  #rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 3px;
    overflow: visible;
  }
  #rail .nav-group { display: contents; }
  #rail .module-button {
    grid-row: 1;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px;
    font-size: 14px;
  }
  #rail .nav-group[data-current] .module-button { background: #20232a; color: #fff; }
  #rail .nav-group[data-current] .module-icon { color: inherit; }
  #rail .group-links { display: none; }
  #rail .nav-group[data-current] .group-links {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0;
  }
  #rail .group-links button { width: auto; padding: 6px 9px; font-size: 13px; }
  .frame:has(#desk:not([hidden])) main { padding: 15px; }
  #desk .heading { margin: 19px 0 16px; }
  #desk .event-tools { gap: 8px; padding: 10px; }
  #desk .event-tools .field { max-width: none; gap: 6px; }
  #desk .event-tools .button { align-self: center; margin: 0; }
}
