#sections .main-sections {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 0;
}

.section-group {
  position: relative;
  flex: none;
}

#sections .main-sections > a,
#sections .section-trigger {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
}

#sections .section-trigger {
  position: relative;
  min-height: 44px;
  padding: 10px 5px 12px;
  color: #85898e;
  font-size: 15px;
}

#sections .section-trigger:is(:hover, [aria-expanded="true"], [data-current]) {
  color: #0782ff;
}

#sections .section-trigger[data-current]::after {
  position: absolute;
  inset: auto 5px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #0782ff;
  content: '';
}

.section-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 35;
  min-inline-size: 150px;
  padding: 4px;
  background: white;
  border: 1px solid #d4dcd4;
  border-radius: 8px;
  box-shadow: 0 8px 24px #143a3526;
}

#sections .main-sections .section-menu a {
  display: flex;
  justify-content: flex-start;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #24382f;
}

#sections .main-sections .section-menu a[aria-current] {
  color: #075caa;
  background: #edf5fd;
}

#sections .main-sections .section-menu a:not([aria-current]):is(:hover, :focus-visible) {
  color: #24382f;
  background: #eef0f2;
}

#sections .section-menu a[aria-current]::after {
  content: none;
}

#sections .main-sections [hidden] {
  display: none;
}

#sections .settings-link {
  padding-inline: 8px;
}

.settings-link svg {
  width: 1em;
  height: 1em;
}

.schedule-holiday-art {
  --schedule-art-size: 112px;
  flex: none;
  width: var(--schedule-art-size);
  aspect-ratio: 1;
  background: url('assets/holiday-scenes.png') no-repeat 0 0 / 200% 200%;
  mix-blend-mode: multiply;
}

[data-block="month"] > .row {
  margin-block-end: 8px;
}

.schedule-overview-details {
  display: grid;
  flex: 1 1 22rem;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}

#app .schedule-overview-details .month-controls {
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
}

#app .schedule-overview-details .month-controls :is(button, input[type="month"]) {
  height: auto;
  min-height: 38px;
}

#app .schedule-overview-details .month-controls button {
  width: 32px;
}

#app .schedule-overview-details .month-controls input[type="month"] {
  font-size: 15px;
}

.schedule-chat-preview {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #d7e0dc;
  border-radius: 8px;
  background: #f7faf8;
  color: #24382f;
  cursor: pointer;
  touch-action: manipulation;
}

.schedule-chat-preview:is(:hover, :focus-visible) {
  border-color: #73917f;
}

.schedule-chat-preview [data-latest-messages] {
  display: grid;
  gap: 3px;
}

.schedule-chat-preview-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: .9rem;
}

.schedule-chat-preview-author,
.schedule-chat-preview-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.schedule-chat-preview-author {
  max-inline-size: 8em;
}

.schedule-chat-preview-content {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.schedule-chat-preview-text {
  min-width: 0;
}

.schedule-chat-preview-media {
  display: flex;
  flex: none;
  gap: 6px;
  max-inline-size: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.schedule-chat-preview-text + .schedule-chat-preview-media {
  max-inline-size: 55%;
}

.schedule-chat-preview time {
  font-size: .8rem;
  color: #526c64;
  white-space: nowrap;
}

.schedule-chat-preview [role="status"] {
  margin: 0;
  font-size: .8rem;
}

.schedule-chat-preview [role="status"]:not(:empty) {
  margin-top: 4px;
}

.chat-bubble-text a,
.schedule-chat-preview :is(a, .schedule-chat-image) {
  color: #075caa;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.schedule-chat-preview .schedule-chat-image {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
}

.schedule-chat-preview .schedule-chat-image:disabled {
  cursor: progress;
}

#app .knowledge {
  width: 100%;
  max-width: none;
}

.knowledge .video-card {
  width: 100%;
  align-items: stretch;
  overflow: hidden;
}

.knowledge .video-card video {
  display: block;
  max-width: 100%;
  object-fit: contain;
  background: #edf2ee;
}

.knowledge .video-form {
  align-items: end;
  gap: 10px 12px;
}

.knowledge .video-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.knowledge .video-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-width: 0;
  gap: 8px;
}

.knowledge .video-upload :is(input, button) {
  height: 42px;
  min-width: 0;
  margin: 0;
}

.employee-heading-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1px;
}

.employee-heading-actions .overview-info {
  display: grid;
  place-items: center;
  width: 20px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #356651;
  font-weight: 700;
}

.employee-heading-actions .overview-info:is(:hover, :focus-visible) {
  background: #cfe6d6;
}

@media (max-width: 650px) {
  #sections .section-trigger { font-size: 14px; }
  .schedule-chat-preview { grid-column: 1 / -1; }
  .knowledge .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge .video-upload { width: 100%; }
}

@media (max-width: 420px) {
  .schedule-holiday-art { --schedule-art-size: 96px; }
  .schedule-overview-details { gap: 8px; }
  #app .schedule-overview-details .month-controls button { width: 26px; }
  #app .schedule-overview-details .month-controls input[type="month"] { width: 9em; }
  .schedule-chat-preview-message { gap: 6px; }
  .schedule-chat-preview-author { max-inline-size: 5.5em; }
}
