/* The Codacre services panel, opened from the footer line or the toast. */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 23, 20, 0.6);
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: var(--gutter) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-title {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 700;
}

.sheet-lead {
  color: var(--muted);
  font-size: var(--fs-small);
}

.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--ease);
}

.svc:hover {
  background: var(--bg);
}

.svc-title {
  font-weight: 700;
}

.svc-hint {
  font-size: var(--fs-small);
  color: var(--muted);
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.sheet-all {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .sheet-backdrop {
    align-items: center;
  }

  .sheet {
    border-radius: var(--radius);
  }
}
