#sp-temporary {
  z-index: 2;
}

.temporary-sidebar-shell {
  min-height: 100%;
}

.temporary-sidebar-body {
  padding: 0;
}

.temporary-sidebar-view {
  min-height: 100%;
}

.temporary-sidebar-view[hidden] {
  display: none !important;
}

.temporary-sidebar-view .sp-settings-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.temporary-sidebar-view .sp-settings-group-header {
  padding-bottom: 0;
}

.temporary-sidebar-view .sp-settings-group-body {
  display: grid;
  gap: 12px;
}

.temporary-sidebar-form-grid,
.temporary-sidebar-inline-grid {
  display: grid;
  gap: 12px;
}

.temporary-sidebar-inline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.temporary-sidebar-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.temporary-sidebar-actions {
  margin-top: 2px;
}

.temporary-sidebar-status-card {
  margin-bottom: 2px;
}

.temporary-sidebar-status-card p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.temporary-sidebar-status-body {
  display: grid;
  gap: 6px;
}

.temporary-sidebar-status-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.temporary-sidebar-inline-meta {
  display: grid;
  gap: 4px;
}

.temporary-sidebar-meta-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.temporary-sidebar-meta-value {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: var(--fill-subtle);
  color: var(--text);
}

.temporary-sidebar-choice-group {
  margin-top: 10px;
}

.temporary-sidebar-danger {
  color: var(--status-error);
}

#sp-temporary #link-popover {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  transform: none;
}

#sp-temporary #link-popover:not([hidden]) {
  display: block;
}

#sp-temporary .temporary-sidebar-status-card {
  background: var(--sp-card-bg);
}

#sp-temporary .sp-action-row > .temporary-sidebar-danger {
  margin-right: auto;
}

@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) {
  .temporary-sidebar-inline-grid {
    grid-template-columns: 1fr;
  }

  .temporary-sidebar-inline-row {
    grid-template-columns: 1fr;
  }

  #sp-temporary .sp-action-btn,
  #sp-temporary .ui-choice-btn,
  #sp-temporary .ui-control {
    min-height: 40px;
  }
}
