#info {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;

  width: 280px;
  height: auto;
  max-height: calc(100vh - 16px);

  padding: 4px;
  margin: 0;
  background: #fcfdfe;
  box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -webkit-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -moz-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);
  -ms-box-shadow: 0.1rem 0.3rem 0.5rem rgba(64, 64, 64, 0.4);

  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  z-index: 20;
  box-sizing: border-box;
}

#info.widen {
  width: 420px;
}

#info > header {
  position: sticky;
  top: 0;
  right: auto;
  width: 100%;
  box-sizing: border-box;
  color: #808080;
  background-image: linear-gradient(to bottom right, #efefef, #fcfdfe);
  z-index: 1;
}

#info.widen > header {
  width: 100%;
}

#info-generic,
#info-group,
#info-uploaded,
#info-video,
#info-asciidoc,
#info-timeline,
#info-viewpoint,
#info .info {
  margin-top: 8px;
}

#info-generic,
#info-group,
#info-uploaded,
#info-video,
#info-audio,
#info-image,
#info-asciidoc,
#info-timeline,
#info-viewpoint,
#info-contents {
  box-sizing: border-box;
  width: 100%;
}

#info * {
  /* disable selection */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#infoWiden {
  position: absolute;
  top: 44px;
  left: 29px;
}

#infoDismiss {
  position: absolute;
  top: 16px;
  right: 12px;
}

#info .fa,
#info .fas,
#info .fab,
#info .far {
  color: #808080;
  cursor: pointer;
}

#info .fas {
  color: #808080;
}

#info .fa:hover,
#info .fas:hover,
#info .fab:hover,
#info .far:hover  {
  color: rgb(77, 179, 205);
  text-shadow: 0em 0.1em 0.1em rgba(0, 0, 0, 0.3);
}

.info .frame img {
  max-width: 100%;
  height: auto;
}

#info input,
#info textarea {
  background: #fcfdfe;
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #cdcdcd;
  border-left: none;
  margin-top: 4px;
  padding: 4px;
}
/* Header action icons: right-aligned on one row: edit/info action, widen, close. */
#info > header {
  min-height: 56px;
}

#info > header h2 {
  margin: 0;
  padding: 12px 96px 8px 0;
  line-height: 1;
}

#info .pane-header-actions {
  position: absolute;
  top: 16px;
  right: 12px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

#editOpen,
#infoWiden,
#infoDismiss {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 22px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Administrator diagnostic pane */
#info-admin .admin-diagnostic-pane {
  font-size: 12px;
  color: #333;
}

#info-admin .admin-warning {
  margin: 4px 0 8px 0;
  padding: 6px;
  border-left: 3px solid #b36b00;
  background: #fff7e6;
  white-space: pre-wrap;
}

#info-admin summary {
  cursor: pointer;
  font-weight: 700;
  color: #555;
}

#info-admin th,
#info-admin th {
  width: 38%;
  text-align: left;
  color: #666;
  font-weight: 600;
}

#info-admin .admin-validation-ok {
  color: #27632a;
}

/* Final info pane header action alignment override.
   Keep action icons at the right edge in one row. */
#info > header {
  position: sticky;
  min-height: 56px;
}

#info .pane-header-actions {
  position: absolute !important;
  top: 16px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  z-index: 3;
}

#info .pane-header-actions > a {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  margin: 0;
  padding: 0;
}

#editOpen,
#infoWiden,
#infoDismiss {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

/* Pane title text for info/admin panes. */
#info .pane-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

#info .pane-title-text {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}



/* Conditional edit action in the information pane header.
   Own/editable records show: [edit] <-> X.
   Non-owned/read-only records show: <-> X. */
#info .pane-header-actions #editOpen {
  display: none;
}

#info .pane-header-actions #editOpen.is-visible {
  display: inline-flex !important;
}

#info.readonly .pane-header-actions #editOpen,
#info.readonly .pane-header-actions #editOpen.is-visible {
  display: none !important;
}
